cppcheck analysis of cmake_2.8.2-2.dsc
- ./Source/CPack/cmCPackArchiveGenerator.cxx:244 [error] - Resource leak: file
- ./Source/CPack/cmCPackGenerator.cxx:334 [style] - The iterator incrementing is suspicious - it is incremented at line 334 and then at line 329 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/CPack/cmCPackGenerator.cxx:497 [style] - The iterator incrementing is suspicious - it is incremented at line 497 and then at line 478 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/CPack/cmCPackNSISGenerator.cxx:451 [style] - The iterator incrementing is suspicious - it is incremented at line 451 and then at line 448 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/CPack/cmCPackNSISGenerator.cxx:524 [style] - The iterator incrementing is suspicious - it is incremented at line 524 and then at line 511 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/CPack/cmCPackOSXX11Generator.cxx:67 [style] - The iterator incrementing is suspicious - it is incremented at line 67 and then at line 64 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/CTest/cmCTestRunTest.cxx:95 [error] - Memory leak: out
- ./Source/CTest/cmParsePHPCoverage.cxx:162 [error] - Memory leak: s
- ./Source/CursesDialog/ccmake.cxx:86 [error] - Uninitialized variable: x
- ./Source/CursesDialog/ccmake.cxx:168 [error] - Uninitialized variable: x
- ./Source/CursesDialog/ccmake.cxx:169 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:74 [error] - Array 'bar[512]' index 512 out of bounds
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:82 [error] - Array 'version[512]' index 512 out of bounds
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:53 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:65 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:96 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:97 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:114 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesLongMessageForm.cxx:133 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesMainForm.cxx:379 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesMainForm.cxx:380 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesMainForm.cxx:471 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesMainForm.cxx:473 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesMainForm.cxx:638 [error] - Uninitialized variable: xi
- ./Source/CursesDialog/cmCursesMainForm.cxx:685 [error] - Uninitialized variable: xx
- ./Source/CursesDialog/cmCursesMainForm.cxx:715 [error] - Uninitialized variable: xi
- ./Source/CursesDialog/cmCursesMainForm.cxx:744 [error] - Uninitialized variable: xx
- ./Source/CursesDialog/cmCursesStringWidget.cxx:216 [error] - Uninitialized variable: x
- ./Source/CursesDialog/cmCursesStringWidget.cxx:217 [error] - Uninitialized variable: x
- ./Source/cmSystemTools.cxx:1846 [error] - Resource leak: file
- ./Source/cmake.cxx:1867 [style] - The iterator incrementing is suspicious - it is incremented at line 1867 and then at line 1862 The loop might unintentionally skip an element in the container. There is no comparison between these increments to prevent that the iterator is incremented beyond the end.
- ./Source/kwsys/EncodeExecutable.c:44 [error] - Resource leak: ifp
- ./Source/kwsys/ProcessUNIX.c:1895 [error] - Resource leak: fout
- ./Tests/CTestTestCrash/crash.cxx:5 [error] - Null pointer dereference
- ./Tests/CTestTestScheduler/sleep.c:16 [error] - Uninitialized variable: time
- ./Tests/CTestTestStopTime/sleep.c:16 [error] - Uninitialized variable: time
- ./Utilities/cmbzip2/bzip2recover.c:312 [error] - Buffer overrun possible for long cmd-line args
- ./Utilities/cmbzip2/unzcrash.c:141 [error] - Resource leak: f
- ./Utilities/cmcurl/Testing/sepheaders.c:59 [error] - Resource leak: headerfile
- ./Utilities/cmcurl/multi.c:1916 [error] - Possible null pointer dereference: p - otherwise it is redundant to check if p is null at line 1941
- ./Utilities/cmexpat/xmlparse.c:1745 [error] - Uninitialized variable: buf
- ./Utilities/cmlibarchive/cpio/cmdline.c:346 [error] - Memory leak: user
- ./Utilities/cmlibarchive/cpio/test/main.c:671 [error] - Resource leak: f1
- ./Utilities/cmlibarchive/cpio/test/main.c:671 [error] - Resource leak: f2
- ./Utilities/cmlibarchive/cpio/test/main.c:337 [error] - Null pointer dereference
- ./Utilities/cmlibarchive/libarchive/archive_check_magic.c:72 [error] - Null pointer dereference
- ./Utilities/cmlibarchive/libarchive/archive_entry_link_resolver.c:238 [error] - Memory leak: le
- ./Utilities/cmlibarchive/libarchive/archive_read_open_filename.c:117 [error] - Resource leak: fd
- ./Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c:638 [error] - Buffer access out-of-bounds: header.magic
- ./Utilities/cmlibarchive/libarchive/test/main.c:668 [error] - Resource leak: f1
- ./Utilities/cmlibarchive/libarchive/test/main.c:668 [error] - Resource leak: f2
- ./Utilities/cmlibarchive/libarchive/test/main.c:334 [error] - Null pointer dereference
- ./Utilities/cmlibarchive/libarchive/test/test_acl_freebsd.c:213 [error] - Resource leak: fd
- ./Utilities/cmlibarchive/libarchive/test/test_extattr_freebsd.c:62 [error] - Resource leak: fd
- ./Utilities/cmlibarchive/tar/test/main.c:670 [error] - Resource leak: f1
- ./Utilities/cmlibarchive/tar/test/main.c:670 [error] - Resource leak: f2
- ./Utilities/cmlibarchive/tar/test/main.c:334 [error] - Null pointer dereference
- ./Utilities/cmzlib/gzio.c:149 [error] - Memory leak: s.path
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:13:07 +0000, based on results by cppcheck 1.46