So, I am switching back to C coding soon. I have previous experience of Gimpel Lint and Splint, but would like to check out a few others.
Does anyone know of some C code which is specifically designed to test the capabilities of C static code analyzers?
That is to say, some code which deliberately accesses freed memory, reads beyond the end of arrays, unreachable code, etc, etc.
I would like to use it to evaluate C static code analyzers, to help me chose one.
Gratis, please, preferably Windows, but I will also accept Linux.
That is my on topic question. I don't suppose I would complain if there were some off-topic comments comparing such analyzers, pointing to websites, comparisons, recommendations, ease of setup/use, etc ( wink ;-)
gcc -Wall -Werror
then fix things!Software Recommendations
and I am asking the members to recommend some software. Maybe we should rename the site toApplication Recommendations
? ;-) If I want to be pedantic, I can say that I am not asking for a code snippet, but for a complete test suite. - where else can I ask? () there was a site for library recommendations proposed on Area 51 not long ago, but it seems to have disappeared :-(