Menu

arrayIndexOutOfBounds not detected in function-call with cppcheck version 2.11

2023-07-26
2023-07-26
  • Peter Schops

    Peter Schops - 2023-07-26

    While trying out some test-cases I found online, I noticed that out of bound check was not catching out of bound error in functions.

    So the 2 issues in the main loop are detected, but the issues in set_array_elements and print_array_sum are not detected.

     
  • Peter Schops

    Peter Schops - 2023-07-26

    Screenshot of the generated HTML-report

     
  • CHR

    CHR - 2023-07-26

    Seems like this is covered by https://trac.cppcheck.net/ticket/10064

     

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.