Menu

2.3 (and HEAD) arrayIndexOutOfBounds: false positive

2021-03-19
2021-03-24
  • Richard Smith

    Richard Smith - 2021-03-19

    With cppcheck 2.3 and HEAD I'm getting occurrences of this message.

    arrayIndexOutOfBounds: Array 'string[5]' accessed at index 255, which is out of bounds.

    These do not occur with cppcheck 2.2. As far as I can see in my code base this is a false positive. Has there been changes in how this check is implemented after version 2.2?

     
  • CHR

    CHR - 2021-03-24

    Could you provide a minimal code example?

     

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.