Page 1 of 1

Results of running a code analyzer on ImageMagick

Posted: 2009-01-02T21:57:14-07:00
by naoliv
Hi!

I was running a C/C++ code analyzer (cppcheck - http://cppcheck.wiki.sourceforge.net/) against ImageMagick, and I've got these results (none of them are errors):
http://people.debian.org/~naoliv/misc/i ... pcheck.txt

Note that there might be false positives or wrong line numbers. For example:

Code: Select all

[./coders/gif.c:947]: Variable 'dispose' is assigned a value that is never used
Actually it's line 1027.

Tested against latest version from SVN (revision 13730)

Thank you!

Re: Results of running a code analyzer on ImageMagick

Posted: 2009-01-03T08:59:39-07:00
by magick
We'll review the report and see if any of the problems reported require attention. We noticed the report has an excessive number of false positives, mostly "Variable is assigned a value that is never used."

Re: Results of running a code analyzer on ImageMagick

Posted: 2009-02-07T18:27:32-07:00
by magick
Glad we could help debug your software. A code checker is a useful tool and as soon as the false positive problem is fixed we envision using your software to verify ImageMagick before each release is approved. We do something similar with runtime checks (e.g. valgrind). Thanks.