Page 1 of 1

CppCheck

Posted: 02 Aug 2009 07:33
by nikola23
I was looking at the pidgin.im trac and someone found some memory leaks with cppcheck so i ran the VLC code against it and it found the following. Mind you I don't claim to know what the errors\warning mean, but I just hope to help.
[../modules/video_chroma/i420_yuy2.c:59]: (Error) Invalid number of character ({). Can't process file.
[../modules/video_filter/wall.c:425]: () Warning: Division with signed and unsigned operators
[../modules/video_filter/wall.c:426]: () Warning: Division with signed and unsigned operators
[../src/misc/threads.c:1323]: (Error) Memory leak: nfo
Also this is with the option to turn off possible false positives, which I'd estimate there were about 200.

Re: CppCheck

Posted: 04 Aug 2009 21:34
by ivoire
I can't reproduce it with the latest cppcheck. Moreover I'm wondering which version of vlc you are scanning as src/misc/threads.c doe not contain 1323 lines!

Re: CppCheck

Posted: 05 Aug 2009 02:16
by nikola23
Sorry I stupidly ran it against the 1.0.1 code instead of a nightly copy.