cppcheck analysis of xcircuit_3.6.135.dfsg-1.dsc
- ./Xw/TextEdit.c:990 [error] - Resource leak: fid
- ./elements.c:589 [error] - Uninitialized variable: strpos
- ./events.c:4092 [error] - Possible null pointer dereference: lastpart - otherwise it is redundant to check if lastpart is null at line 4096
- ./events.c:4541 [error] - Memory leak: popdata
- ./filelist.c:216 [error] - Common realloc mistake: "retstr" nulled but not freed upon failure
- ./filelist.c:455 [error] - Common realloc mistake: "files" nulled but not freed upon failure
- ./filelist.c:630 [error] - Common realloc mistake: "tbuf" nulled but not freed upon failure
- ./filelist.c:881 [error] - Common realloc mistake: "cwdname" nulled but not freed upon failure
- ./files.c:1211 [error] - Buffer access out-of-bounds: inname
- ./files.c:4673 [error] - Deallocating a deallocated pointer: template
- ./fontfile.c:123 [error] - Common realloc mistake: "fonts" nulled but not freed upon failure
- ./fontfile.c:277 [error] - Common realloc mistake: "fonts" nulled but not freed upon failure
- ./fontfile.c:359 [error] - Common realloc mistake: "fonts" nulled but not freed upon failure
- ./fontfile.c:94 [error] - Dangerous usage of 'tempname' (strncpy doesn't always 0-terminate it)
- ./formats.c:103 [error] - Resource leak: ps
- ./functions.c:2269 [error] - Common realloc mistake: "tmppoints" nulled but not freed upon failure
- ./functions.c:2276 [error] - Common realloc mistake: "tmppoints" nulled but not freed upon failure
- ./keybindings.c:336 [error] - Common realloc mistake: "retstr" nulled but not freed upon failure
- ./keybindings.c:347 [error] - Common realloc mistake: "retstr" nulled but not freed upon failure
- ./keybindings.c:371 [error] - Common realloc mistake: "retstr" nulled but not freed upon failure
- ./keybindings.c:381 [error] - Common realloc mistake: "retstr" nulled but not freed upon failure
- ./keybindings.c:443 [error] - Common realloc mistake: "kptr" nulled but not freed upon failure
- ./keybindings.c:447 [error] - Common realloc mistake: "kptr" nulled but not freed upon failure
- ./menucalls.c:840 [error] - Buffer access out-of-bounds
- ./netlist.c:974 [error] - Common realloc mistake: "tmppts" nulled but not freed upon failure
- ./netlist.c:997 [error] - Common realloc mistake: "tmppts" nulled but not freed upon failure
- ./netlist.c:1014 [error] - Common realloc mistake: "tmppts" nulled but not freed upon failure
- ./netlist.c:4151 [error] - Common realloc mistake: "newprefix" nulled but not freed upon failure
- ./netlist.c:5443 [error] - Common realloc mistake: "newprefix" nulled but not freed upon failure
- ./netlist.c:6355 [error] - Common realloc mistake: "included_files" nulled but not freed upon failure
- ./opengl.c:373 [error] - Common realloc mistake: "v" nulled but not freed upon failure
- ./parameter.c:1873 [error] - Memory leak: sstart
- ./spiceparser/netlist_lib.c:1480 [error] - Memory leak: digital_func
- ./spiceparser/netlist_lib.c:1476 [error] - Allocation with malloc, free doesn't release it.
- ./tclxcircuit.c:2358 [error] - Buffer access out-of-bounds
- ./text.c:600 [error] - Common realloc mistake: "sout" nulled but not freed upon failure
- ./text.c:605 [error] - Common realloc mistake: "sout" nulled but not freed upon failure
- ./text.c:1521 [error] - Common realloc mistake: "tabstops" nulled but not freed upon failure
- ./text.c:1734 [error] - Common realloc mistake: "tabstops" nulled but not freed upon failure
- ./text.c:448 [error] - Memory leak: tmpptr
- ./w32x11.c:392 [error] - Memory leak: d
- ./xcircuit.c:153 [error] - Common realloc mistake: "colorlist" nulled but not freed upon failure
- ./xcwin32.c:445 [error] - Memory leak: d
- ./xcwin32.c:2597 [error] - Memory leak: popup
- ./xcwin32.c:3156 [error] - Memory leak: popup
- ./xtfuncs.c:943 [error] - Common realloc mistake: "fontnumbers" nulled but not freed upon failure
- ./xtfuncs.c:1707 [error] - Memory leak: popdata
- ./xtgui.c:563 [error] - Common realloc mistake: "promptstr" nulled but not freed upon failure
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:20:17 +0000, based on results by cppcheck 1.46