VS studio says it might be dereferencing a null pointer here.
while (Token::Match(argtok, ".|::")) argtok = argtok->astOperand2();
it is not checked for null so it might be right.
checkbufferoverrun.cpp:588
It is wrong. argtok cannot match ".|::" if it is null.
Correct. Token::macth would return false and get out of the loop.
Log in to post a comment.
VS studio says it might be dereferencing a null pointer here.
while (Token::Match(argtok, ".|::"))
argtok = argtok->astOperand2();
it is not checked for null so it might be right.
checkbufferoverrun.cpp:588
It is wrong. argtok cannot match ".|::" if it is null.
Correct. Token::macth would return false and get out of the loop.