cppcheck analysis of swi-prolog_5.10.2-1.dsc
- ./packages/clib/maildrop/rfc2045/rfc2045.c:1108 [error] - Memory leak: s
- ./packages/clib/maildrop/rfc2045/rfc2045.c:1121 [error] - Memory leak: s
- ./packages/clib/maildrop/rfc2045/rfc2045decode.c:20 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./packages/cpp/SWI-cpp.h:1006 [error] - Memory leak: PlError::message
- ./packages/ltx2htm/tex.c:299 [error] - Resource leak: fd
- ./packages/nlp/libstemmer_c/runtime/utilities.c:19 [error] - Memory leak: mem
- ./packages/semweb/rdf_db.c:882 [error] - Memory leak: cp
- ./packages/sgml/parser.c:2726 [error] - Uninitialized variable: atts
- ./packages/sgml/parser.c:2860 [error] - Uninitialized variable: atts
- ./packages/ssl/ssllib.c:1064 [error] - Memory leak: instance
- ./packages/table/table.c:2042 [error] - Memory leak: q
- ./packages/xpce/README.CXX:78 [error] - No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./packages/xpce/lib/xcnvcurs.c:145 [error] - Memory leak: glyphs
- ./packages/xpce/src/find_names.c:57 [error] - Common realloc mistake: "names" nulled but not freed upon failure
- ./packages/xpce/src/img/jpegtoxpm.c:143 [error] - Uninitialized variable: buf
- ./packages/xpce/src/itf/public.c:62 [error] - Possible null pointer dereference: n
- ./packages/xpce/src/itf/public.c:64 [error] - Possible null pointer dereference: n
- ./packages/xpce/src/ker/self.c:269 [error] - Null pointer dereference
- ./packages/xpce/src/msw/msdisplay.c:636 [style] - Redundant assignment of "depth" in switch
- ./packages/xpce/src/msw/msframe.c:1361 [style] - Redundant assignment of "depth" in switch
- ./packages/xpce/src/rgx/regcomp.c:630 [error] - Memory leak: left
- ./packages/xpce/src/rgx/regcomp.c:630 [error] - Memory leak: right
- ./packages/xpce/src/rgx/regcomp.c:617 [error] - Memory leak: branches
- ./packages/xpce/src/rgx/regcomp.c:702 [error] - Memory leak: lp
- ./packages/xpce/src/rgx/regcomp.c:690 [error] - Memory leak: t
- ./packages/xpce/src/rgx/regcomp.c:791 [error] - Memory leak: s
- ./packages/xpce/src/rgx/regcomp.c:833 [error] - Memory leak: s2
- ./packages/xpce/src/rgx/regcomp.c:1014 [error] - Memory leak: atom
- ./packages/xpce/src/rgx/regcomp.c:910 [error] - Memory leak: t
- ./packages/xpce/src/rgx/regcomp.c:1243 [error] - Memory leak: s2
- ./packages/xpce/src/rgx/regcomp.c:1314 [error] - Memory leak: left
- ./packages/xpce/src/rgx/regcomp.c:1314 [error] - Memory leak: right
- ./packages/xpce/src/rgx/regcomp.c:1345 [error] - Memory leak: s
- ./packages/xpce/src/rgx/regcomp.c:1658 [error] - Memory leak: s
- ./packages/xpce/src/rgx/regcomp.c:1750 [error] - Memory leak: left
- ./packages/xpce/src/rgx/regcomp.c:1750 [error] - Memory leak: right
- ./packages/xpce/src/rgx/regcomp.c:1971 [error] - Memory leak: nfa
- ./packages/xpce/src/rgx/regc_nfa.c:810 [error] - Memory leak: s
- ./packages/xpce/src/rgx/regc_nfa.c:928 [error] - Memory leak: s
- ./packages/xpce/src/rgx/test.c:100 [error] - Memory leak: target
- ./packages/xpce/src/unx/file.c:420 [error] - Deallocating a deallocated pointer: fdfrom
- ./packages/xpce/src/x11/xcommon.c:504 [style] - Redundant assignment of "vt" in switch
- ./packages/xpce/src/x11/xjpeg.c:301 [error] - Uninitialized variable: buf
- ./src/mkvmi.c:75 [error] - Common realloc mistake: "synopsis" nulled but not freed upon failure
- ./src/morecore.c:150 [error] - Memory leak: rval
- ./src/pl-os.c:673 [error] - Uninitialized variable: temp
- ./src/test/memmodel.c:57 [error] - Returning pointer to local array variable
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, 28 Mar 2011 06:58:34 +0000, based on results by cppcheck 1.46