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.
Screenshot of the generated HTML-report
Seems like this is covered by https://trac.cppcheck.net/ticket/10064
Log in to post a comment.
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.
Screenshot of the generated HTML-report
Seems like this is covered by https://trac.cppcheck.net/ticket/10064