cppcheck analysis of graphviz_2.26.3-5.dsc
- ./cmd/lefty/dot2l/dotparse.c:1321 [error] - Memory leak: yyptr
- ./cmd/lefty/dot2l/y.tab.c:1321 [error] - Memory leak: yyptr
- ./cmd/lefty/internal.c:845 [error] - Common realloc mistake: "bufp" nulled but not freed upon failure
- ./cmd/lefty/str.c:490 [error] - Common realloc mistake: "sbufp" nulled but not freed upon failure
- ./cmd/lefty/ws/x11/gquery.c:316 [error] - Uninitialized variable: c
- ./cmd/smyrna/gui/beacon.c:335 [error] - Memory leak: buf
- ./cmd/smyrna/gui/gui.c:337 [error] - Memory leak: ss
- ./cmd/smyrna/selection.c:348 [error] - Uninitialized variable: i
- ./cmd/smyrna/selection.c:349 [error] - Uninitialized variable: i
- ./cmd/tools/gmlparse.c:1644 [error] - Memory leak: gmlptr
- ./cmd/tools/gmlscan.c:623 [error] - Common realloc mistake: "Sbuf" nulled but not freed upon failure
- ./cmd/tools/mmio.c:352 [error] - Resource leak: f
- ./cmd/tools/y.tab.c:1644 [error] - Memory leak: yyptr
- ./contrib/prune/prune.c:298 [error] - Memory leak: sp.n
- ./contrib/prune/prune.c:298 [error] - Memory leak: sp.v
- ./lib/cgraph/attr.c:77 [error] - Uninitialized variable: dict
- ./lib/cgraph/grammar.c:1355 [error] - Memory leak: aagptr
- ./lib/cgraph/scan.c:607 [error] - Common realloc mistake: "Sbuf" nulled but not freed upon failure
- ./lib/cgraph/write.c:159 [error] - Common realloc mistake: "rv" nulled but not freed upon failure
- ./lib/cgraph/y.tab.c:1355 [error] - Memory leak: yyptr
- ./lib/common/emit.c:1435 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/common/input.c:526 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/common/routespl.c:567 [error] - Invalid number of character ({) when these macros are defined: 'DONTFIXPATH'.
- ./lib/common/utils.c:349 [error] - Common realloc mistake: "safefilename" nulled but not freed upon failure
- ./lib/expr/exparse.c:1835 [error] - Memory leak: exptr
- ./lib/expr/y.tab.c:1835 [error] - Memory leak: yyptr
- ./lib/fdpgen/xlayout.c:310 [error] - Uninitialized variable: ov
- ./lib/gd/gdtestft.c:134 [error] - Resource leak: in
- ./lib/gd/webpng.c:296 [error] - Resource leak: in
- ./lib/glcomp/glcompfont.c:108 [error] - Possible null pointer dereference: font - otherwise it is redundant to check if font is null at line 109
- ./lib/glcomp/glcomplabel.c:67 [error] - Possible null pointer dereference: temp - otherwise it is redundant to check if temp is null at line 68
- ./lib/graph/attribs.c:292 [error] - Memory leak: b
- ./lib/graph/graphio.c:232 [error] - Common realloc mistake: "rv" nulled but not freed upon failure
- ./lib/gvc/gvplugin.c:86 [error] - Dangerous usage of 'pins' (strncpy doesn't always 0-terminate it)
- ./lib/gvc/gvusershape.c:319 [error] - Uninitialized variable: lx
- ./lib/gvc/gvusershape.c:320 [error] - Uninitialized variable: ly
- ./lib/gvc/gvusershape.c:321 [error] - Uninitialized variable: ux
- ./lib/gvc/gvusershape.c:321 [error] - Uninitialized variable: lx
- ./lib/gvc/gvusershape.c:322 [error] - Uninitialized variable: uy
- ./lib/gvc/gvusershape.c:322 [error] - Uninitialized variable: ly
- ./lib/neatogen/call_tri.c:50 [error] - Possible null pointer dereference: edgelist
- ./lib/neatogen/call_tri.c:51 [error] - Possible null pointer dereference: edgelist
- ./lib/neatogen/closest.h:18 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./lib/neatogen/dijkstra.c:169 [error] - Common realloc mistake: "index" nulled but not freed upon failure
- ./lib/neatogen/dijkstra.c:229 [error] - Common realloc mistake: "node_in_neighborhood" nulled but not freed upon failure
- ./lib/neatogen/dijkstra.c:244 [error] - Common realloc mistake: "index" nulled but not freed upon failure
- ./lib/neatogen/dijkstra.h:18 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./lib/neatogen/kkutils.h:18 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./lib/pathplan/route.c:206 [error] - Common realloc mistake: "tnas" nulled but not freed upon failure
- ./lib/pathplan/route.c:526 [error] - Common realloc mistake: "ops" nulled but not freed upon failure
- ./lib/pathplan/shortest.c:520 [error] - Common realloc mistake: "pnls" nulled but not freed upon failure
- ./lib/pathplan/shortest.c:545 [error] - Common realloc mistake: "tris" nulled but not freed upon failure
- ./lib/pathplan/shortest.c:586 [error] - Common realloc mistake: "ops" nulled but not freed upon failure
- ./lib/sfio/sfopen.c:89 [error] - Resource leak: fd
- ./lib/sparse/SparseMatrix.c:66 [error] - Possible null pointer dereference: A - otherwise it is redundant to check if A is null at line 70
- ./lib/sparse/SparseMatrix.c:2306 [error] - Possible null pointer dereference: A - otherwise it is redundant to check if A is null at line 2309
- ./lib/sparse/SparseMatrix.c:2307 [error] - Possible null pointer dereference: A - otherwise it is redundant to check if A is null at line 2309
- ./lib/sparse/SparseMatrix.c:598 [error] - Resource leak: f
- ./lib/sparse/SparseMatrix.c:630 [error] - Resource leak: f
- ./lib/vmalloc/malloc.c:197 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmdebug.c:378 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmdebug.c:430 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmdebug.c:679 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmprofile.c:472 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmprofile.c:507 [error] - Uninitialized variable: line
- ./lib/vmalloc/vmprofile.c:681 [error] - Uninitialized variable: line
- ./lib/xdot/xdot.c:621 [error] - Possible null pointer dereference: x - otherwise it is redundant to check if x is null at line 623
- ./lib/xdot/xdot.c:312 [error] - Common realloc mistake: "ops" nulled but not freed upon failure
- ./lib/xdot/xdot.c:320 [error] - Common realloc mistake: "ops" nulled but not freed upon failure
- ./plugin/core/gvrender_core_map.c:45 [error] - Common realloc mistake: "A" nulled but not freed upon failure
- ./plugin/gd/gvrender_gd.c:532 [error] - Common realloc mistake: "points" nulled but not freed upon failure
- ./plugin/glitz/gvdevice_glitz.c:516 [error] - Common realloc mistake: "dir" nulled but not freed upon failure
- ./plugin/glitz/gvdevice_glitz.c:523 [error] - Common realloc mistake: "dir" nulled but not freed upon failure
- ./plugin/rsvg/gvloadimage_rsvg.c:106 [error] - Memory leak: fileBuf
- ./plugin/xlib/gvdevice_xlib.c:533 [error] - Common realloc mistake: "dir" nulled but not freed upon failure
- ./plugin/xlib/gvdevice_xlib.c:540 [error] - Common realloc mistake: "dir" nulled but not freed upon failure
- ./tclpkg/gv/gv.cpp:966 [error] - Common realloc mistake: "data" nulled but not freed upon failure
- ./windows/cmd/lefty/dot2l/dotparse.c:994 [error] - Memory leak: yyptr
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Tue, 21 Dec 2010 04:58:16 +0000, based on results by cppcheck 1.46