Cppcheck 2.10 emits the following (false?) errors on the following code: [test.cpp:11]: (error) Array 'src[8]' accessed at index 127, which is out of bounds. [test.cpp:12]: (error) Array 'src[8]' accessed at index 127, which is out of bounds.
It is worth mentioning, that when i moved the loop from the function to main, everything was ok..
Thank you very much for the fast response, i forgot to write the first 2 lines.
I updated the original message and verified with the online client of cppcheck that it complains about the problem.
Sorry
Dotan
Last edit: Dotan Barak 2023-02-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck 2.10 emits the following (false?) errors on the following code:
[test.cpp:11]: (error) Array 'src[8]' accessed at index 127, which is out of bounds.
[test.cpp:12]: (error) Array 'src[8]' accessed at index 127, which is out of bounds.
It is worth mentioning, that when i moved the loop from the function to main, everything was ok..
Thanks!
Last edit: Dotan Barak 2023-02-23
I can't reproduce this with the provided code.
Hi.
Thank you very much for the fast response, i forgot to write the first 2 lines.
I updated the original message and verified with the online client of cppcheck that it complains about the problem.
Sorry
Dotan
Last edit: Dotan Barak 2023-02-23
Thanks for the update, ticket is here: https://trac.cppcheck.net/ticket/11580
Thanks for the fast response.
:)
BTW, is this issue fixed now?
I cloned the cppcheck repository and i still see this issue...
Last edit: Dotan Barak 2023-02-26