cppcheck analysis of clucene-core_0.9.21b-2.dsc
- ./src/CLucene/analysis/AnalysisHeader.cpp:87 [error] - Common realloc mistake: "_termText" nulled but not freed upon failure
- ./src/CLucene/debug/memtracking.cpp:130 [error] - Memory leak: bp
- ./src/CLucene/debug/memtracking.cpp:178 [error] - Memory leak: bp
- ./src/CLucene/debug/memtracking.cpp:221 [error] - Memory leak: bp
- ./src/CLucene/index/CompoundFile.cpp:139 [style] - The iterator incrementing is suspicious - it is incremented at line 139 and then at line 137 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.
- ./src/CLucene/index/IndexReader.cpp:256 [error] - Dangerous usage of 'f' (strncpy doesn't always 0-terminate it)
- ./src/CLucene/index/IndexReader.cpp:539 [error] - Dangerous usage of 'f' (strncpy doesn't always 0-terminate it)
- ./src/CLucene/index/SegmentMerger.cpp:666 [error] - Common realloc mistake: "input" nulled but not freed upon failure
- ./src/CLucene/index/SegmentTermEnum.cpp:381 [error] - Common realloc mistake: "buffer" nulled but not freed upon failure
- ./src/CLucene/index/TermVectorReader.cpp:272 [error] - Common realloc mistake: "buffer" nulled but not freed upon failure
- ./src/CLucene/store/FSDirectory.cpp:340 [error] - Deallocating a deallocated pointer: dir
- ./src/CLucene/store/FSDirectory.cpp:383 [error] - Dangerous usage of 'path' (strncpy doesn't always 0-terminate it)
- ./test/index/TestReuters.cpp:68 [error] - Dangerous usage of 'tmppath' (strncpy doesn't always 0-terminate it)
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:06 +0000, based on results by cppcheck 1.46