I have discovered a behaviour of cppcheck that is maybe a bug. I prepared a simple sample with one headerfile and two sourcefiles. As I understand the documentation of cppcheck this case should be found if I use a cppcheck Build directory (hole program test).
In the first source file Test1.c the out of bounds is found in the function Testfunc2 and main but the out of bounds in the Testfunc in source file interf.c is not found.
The overall programm check should probably find this case.
I am doing something wrong or is this a bug or by design?
In case of a bug I can register a ID in the tracker.
Hi,
I have discovered a behaviour of cppcheck that is maybe a bug. I prepared a simple sample with one headerfile and two sourcefiles. As I understand the documentation of cppcheck this case should be found if I use a cppcheck Build directory (hole program test).
In the first source file Test1.c the out of bounds is found in the function Testfunc2 and main but the out of bounds in the Testfunc in source file interf.c is not found.
The overall programm check should probably find this case.
I am doing something wrong or is this a bug or by design?
In case of a bug I can register a ID in the tracker.
Thanks and regards
Michael