cppcheck analysis of elmerfem_5.5.0.svn.4499.dfsg-1.dsc
- ./ElmerGUI/Application/plugins/egconvert.cpp:1232 [error] - Resource leak: in
- ./ElmerGUI/Application/plugins/egconvert.cpp:1763 [error] - Resource leak: in
- ./ElmerGUI/Application/plugins/egconvert.cpp:1936 [error] - Resource leak: in
- ./ElmerGUI/Application/src/mainwindow.cpp:5648 [error] - Possible null pointer dereference: bodyEdit
- ./ElmerGUI/Application/src/meshutils.cpp:1354 [error] - Memory leak: cc
- ./ElmerGUI/Application/src/meshutils.cpp:1593 [error] - Memory leak: cc
- ./ElmerGUI/Application/src/meshutils.cpp:2137 [error] - Memory leak: activenodes
- ./ElmerGUI/Application/src/operation.h:62 [error] - Memory leak: operation_t::select_set
- ./ElmerGUI/matc/src/elmer/matc.h:414 [error] - Common realloc mistake: "math_out_str" nulled but not freed upon failure
- ./ElmerGUI/matc/src/elmer/matc.h:438 [error] - Common realloc mistake: "math_out_str" nulled but not freed upon failure
- ./ElmerGUI/matc/src/eval.c:456 [error] - Buffer access out-of-bounds: s
- ./ElmerGUI/netgen/libsrc/csg/csgparser.cpp:551 [error] - Memory leak: sol1
- ./ElmerGUI/netgen/libsrc/csg/csgparser.cpp:570 [error] - Memory leak: sol1
- ./ElmerGUI/netgen/libsrc/csg/solid.cpp:544 [error] - Memory leak: nsol
- ./ElmerGUI/netgen/libsrc/gprim/adtree.cpp:90 [error] - Memory leak: bmin
- ./ElmerGUI/netgen/libsrc/gprim/adtree.cpp:90 [error] - Memory leak: bmax
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:30 [error] - Array 'x[3]' index 3 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:73 [error] - Array 'x[2]' index 2 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:75 [error] - Array 'x[2]' index 2 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:75 [error] - Array 'x[2]' index 3 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:75 [error] - Array 'x[3]' index 3 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:28 [error] - Array 'x[2]' index 2 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:30 [error] - Array 'x[2]' index 2 out of bounds
- ./ElmerGUI/netgen/libsrc/gprim/geomobjects.hpp:30 [error] - Array 'x[2]' index 3 out of bounds
- ./elmergrid/src/femelmer.c:151 [error] - Resource leak: in
- ./elmergrid/src/femelmer.c:1441 [error] - Resource leak: out
- ./elmergrid/src/femfilein.c:1502 [error] - Resource leak: in
- ./elmergrid/src/femfilein.c:1969 [error] - Resource leak: in
- ./elmergrid/src/femfilein.c:2313 [error] - Resource leak: in
- ./elmergrid/src/femfilein.c:2486 [error] - Resource leak: in
- ./elmerparam/src/modelline.c:52 [error] - Common realloc mistake: "line" nulled but not freed upon failure
- ./elmerparam/src/modelline.c:67 [error] - Common realloc mistake: "line" nulled but not freed upon failure
- ./fem/src/SC2Elmer.c:338 [error] - Resource leak: fp
- ./fem/src/SC2Elmer.c:338 [error] - Memory leak: ref
- ./fem/src/SC2Elmer.c:338 [error] - Memory leak: renumber
- ./fem/src/SolveHypre.c:98 [error] - Common realloc mistake: "rcols" nulled but not freed upon failure
- ./fem/src/view3d/LUDecomp.c:83 [error] - Memory leak: pivot
- ./fem/src/view3d/LineUtil.c:301 [error] - Uninitialized variable: NTX
- ./fem/src/view3d/LineUtil.c:301 [error] - Uninitialized variable: NTY
- ./fem/src/view3d/LinearSolveJacob.c:98 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./fem/src/view3d/LinearSolveJacob.c:98 [error] - Invalid number of character ({) when these macros are defined: 'JACOB'.
- ./fem/src/view3d/LinearSolveJacob.c:98 [error] - Invalid number of character ({) when these macros are defined: 'OUTPUT_EQU'.
- ./fem/src/view3d/TestModel.c:381 [error] - Resource leak: fp
- ./fem/tests/findnorm.c:52 [error] - Resource leak: fp
- ./front/src/ecif_body2D.cpp:154 [error] - Memory leak: vertex_groups
- ./front/src/ecif_body2D.cpp:154 [error] - Memory leak: vertex_ids
- ./front/src/ecif_control.cpp:918 [error] - Deallocating a deallocated pointer: model_file
- ./front/src/ecif_inputIdeas.cpp:898 [style] - Redundant assignment of "elem_type" in switch
- ./front/src/ecif_inputIdeas.cpp:905 [style] - Redundant assignment of "elem_type" in switch
- ./front/src/ecif_inputIdeas.cpp:913 [style] - Redundant assignment of "elem_type" in switch
- ./front/src/ecif_inputIdeas.cpp:920 [style] - Redundant assignment of "elem_type" in switch
- ./front/src/ecif_inputIdeasWF.cpp:290 [error] - Memory leak: ct_data
- ./front/src/ecif_inputIges.cpp:417 [error] - Array 'fieldBuffer[9]' index 9 out of bounds
- ./front/src/ecif_inputIges.cpp:1069 [error] - Memory leak: knots_u
- ./front/src/ecif_modelMeshManager.cpp:2412 [error] - Memory leak: checked
- ./front/src/ecif_modelMeshManager.cpp:2412 [error] - Memory leak: is_seed
- ./front/src/ecif_modelMeshManager.cpp:2412 [error] - Memory leak: subTags
- ./front/src/ecif_modelMeshManager.cpp:2412 [error] - Memory leak: elem_counts
- ./front/src/ecif_modelMeshManager.cpp:2412 [error] - Memory leak: sub_obj_ids
- ./front/src/ecif_modelOutputManager.cpp:1954 [error] - Memory leak: types
- ./front/src/ecif_modelOutputManager.cpp:2204 [error] - Uninitialized variable: index
- ./front/src/ecif_userinterface_TCL.cpp:5228 [error] - Allocation with fopen, if doesn't release it.
- ./front/src/ecif_userinterface_TCL.cpp:5244 [error] - Allocation with fopen, if doesn't release it.
- ./front/src/ecif_userinterface_TCL.cpp:5263 [error] - Allocation with fopen, if doesn't release it.
- ./front/src/ecif_userinterface_TCL.cpp:5284 [error] - Allocation with fopen, if doesn't release it.
- ./front/src/ecif_userinterface_TCL.cpp:5305 [error] - Allocation with fopen, if doesn't release it.
- ./matc/src/elmer/matc.h:414 [error] - Common realloc mistake: "math_out_str" nulled but not freed upon failure
- ./matc/src/elmer/matc.h:438 [error] - Common realloc mistake: "math_out_str" nulled but not freed upon failure
- ./matc/src/eval.c:456 [error] - Buffer access out-of-bounds: s
- ./meshgen2d/src/BGGridMesh.cpp:181 [error] - Memory leak: mask
- ./misc/tetgen_plugin/plugin/tetgen.cxx:32763 [error] - Memory leak: vertarray
- ./post/src/ElmerPost.c:224 [error] - Uninitialized variable: dr
- ./post/src/ElmerPost.c:225 [error] - Uninitialized variable: dg
- ./post/src/ElmerPost.c:226 [error] - Uninitialized variable: db
- ./post/src/LUDecomp.c:38 [error] - Memory leak: pivot
- ./post/src/modules/readfile.c:114 [error] - Resource leak: fp
- ./post/src/plugins/savepng.c:130 [error] - Memory leak: row_pointers
- ./post/src/plugins/savepng.c:92 [error] - Resource leak: image
- ./post/src/sico2elmer/sico2elmerc.c:257 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:351 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:448 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:474 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:488 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:493 [error] - Buffer access out-of-bounds
- ./post/src/sico2elmer/sico2elmerc.c:499 [error] - Buffer access out-of-bounds
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:52 +0000, based on results by cppcheck 1.46