Menu

Checkbufferoverun.cpp

x-flow
2019-11-29
2019-11-29
  • x-flow

    x-flow - 2019-11-29

    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

     
  • Mr. X

    Mr. X - 2019-11-29

    It is wrong. argtok cannot match ".|::" if it is null.

     
  • x-flow

    x-flow - 2019-11-29

    Correct. Token::macth would return false and get out of the loop.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.