cppcheck analysis of trilinos_10.4.0.dfsg-1.dsc
- ./packages/CTrilinos/src/CTrilinos_utils.cpp:44 [error] - Memory leak: pvalout
- ./packages/CTrilinos/src/CTrilinos_utils.cpp:51 [error] - Memory leak: pvalout
- ./packages/Sundance/src-core/Evaluation/SundanceChainRuleEvaluator.cpp:348 [error] - Same iterator is used with both QW and p
- ./packages/Sundance/src-core/Spectral/SundanceSpectralPreprocessor.cpp:414 [error] - Possible null pointer dereference: se - otherwise it is redundant to check if se is null at line 416
- ./packages/Sundance/src-solvers/Vectors/TSFVectorSpaceDecl.hpp:40 [error] - ### Internal error in Cppcheck. Please report it.
- ./packages/ThreadPool/test/hhpccg/main.c:271 [error] - Resource leak: print_file
- ./packages/ThreadPool/test/hpccg/main.c:339 [error] - Resource leak: print_file
- ./packages/amesos/src/Amesos_Scalapack.cpp:774 [error] - Uninitialized variable: OK
- ./packages/amesos/src/SuiteSparse/KLU/Source/amesos_klu_diagnostics.c:204 [error] - Division by zero
- ./packages/amesos/src/SuiteSparse/PARAKLETE/Source/amesos_paraklete_btf.c:190 [error] - Possible null pointer dereference: LU_btf_symbolic
- ./packages/amesos/src/SuiteSparse/PARAKLETE/Source/amesos_paraklete_btf.c:191 [error] - Possible null pointer dereference: LU_btf_symbolic
- ./packages/amesos/src/SuiteSparse/PARAKLETE/Source/amesos_paraklete_btf.c:192 [error] - Possible null pointer dereference: LU_btf_symbolic
- ./packages/amesos/src/SuiteSparse/PARAKLETE/Source/amesos_paraklete_btf.c:193 [error] - Possible null pointer dereference: LU_btf_symbolic
- ./packages/anasazi/epetra/util/ModeLaplace/ModeLaplace1DQ1.cpp:433 [error] - Memory leak: index
- ./packages/anasazi/epetra/util/ModeLaplace/ModeLaplace1DQ2.cpp:480 [error] - Memory leak: index
- ./packages/anasazi/test/ARPACKExamples/cdriver.cpp:342 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./packages/anasazi/test/ARPACKExamples/cdriver.cpp:342 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_MPI'.
- ./packages/anasazi/test/ARPACKExamples/zdriver.cpp:341 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./packages/anasazi/test/ARPACKExamples/zdriver.cpp:341 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_MPI'.
- ./packages/anasazi/util/ModeLaplace/ModeLaplace1DQ1.cpp:433 [error] - Memory leak: index
- ./packages/anasazi/util/ModeLaplace/ModeLaplace1DQ2.cpp:480 [error] - Memory leak: index
- ./packages/aztecoo/src/Epetra_MsrMatrix.cpp:243 [error] - Possible null pointer dereference: xp
- ./packages/aztecoo/src/Epetra_MsrMatrix.cpp:327 [error] - Possible null pointer dereference: xp
- ./packages/aztecoo/src/Epetra_MsrMatrix.cpp:377 [error] - Possible null pointer dereference: xp
- ./packages/aztecoo/src/az_gmres_condnum.c:681 [error] - Data is allocated but not initialized: work
- ./packages/aztecoo/src/az_gmres_condnum.c:708 [error] - Data is allocated but not initialized: work
- ./packages/aztecoo/src/az_gmres_condnum.c:723 [error] - Data is allocated but not initialized: ipiv
- ./packages/aztecoo/src/az_gmres_condnum.c:726 [error] - Data is allocated but not initialized: ipiv
- ./packages/aztecoo/src/az_gmres_condnum.c:726 [error] - Data is allocated but not initialized: work
- ./packages/aztecoo/src/az_gmres_condnum.c:738 [error] - Data is allocated but not initialized: work
- ./packages/aztecoo/test/AztecOO/cxx_main.cpp:163 [error] - Memory leak: A
- ./packages/aztecoo/test/AztecOO/cxx_main.cpp:218 [error] - Memory leak: options
- ./packages/belos/test/BlockCG/test_bl_cg_complex_hb.cpp:202 [error] - Memory leak: cvals
- ./packages/belos/test/BlockGmres/test_bl_gmres_complex_hb.cpp:205 [error] - Memory leak: cvals
- ./packages/didasko/examples/epetra/ex12.cpp:144 [error] - Mismatching allocation and deallocation: NumNz
- ./packages/didasko/examples/epetra/ex13.cpp:327 [error] - Mismatching allocation and deallocation: MyGlobalElements
- ./packages/didasko/examples/epetra/ex13.cpp:328 [error] - Mismatching allocation and deallocation: Indices
- ./packages/didasko/examples/epetra/ex13.cpp:329 [error] - Mismatching allocation and deallocation: Values
- ./packages/didasko/examples/epetra/ex14.cpp:240 [error] - Mismatching allocation and deallocation: NzPerRow
- ./packages/didasko/examples/epetra/ex14.cpp:235 [error] - Mismatching allocation and deallocation: Values
- ./packages/didasko/examples/epetra/ex14.cpp:236 [error] - Mismatching allocation and deallocation: Indices
- ./packages/didasko/examples/epetra/ex14.cpp:237 [error] - Mismatching allocation and deallocation: Diagonal
- ./packages/didasko/examples/epetra/ex14.cpp:238 [error] - Mismatching allocation and deallocation: SumOffDiagonal
- ./packages/didasko/examples/epetra/ex14.cpp:239 [error] - Mismatching allocation and deallocation: IsDiagonallyDominant
- ./packages/didasko/examples/epetra/ex15.cpp:189 [error] - Mismatching allocation and deallocation: Values
- ./packages/didasko/examples/epetra/ex15.cpp:190 [error] - Mismatching allocation and deallocation: Indices
- ./packages/didasko/examples/epetra/ex19.cpp:152 [error] - Mismatching allocation and deallocation: NumNz
- ./packages/didasko/examples/epetra/ex3.cpp:96 [error] - Mismatching allocation and deallocation: MyGlobalElements
- ./packages/didasko/examples/nox/Heq.H:120 [error] - Memory leak: HeqProblem::hold
- ./packages/epetra/example/OSKI/cxx_main.cpp:156 [error] - Deallocating a deallocated pointer: handle
- ./packages/epetra/src/Epetra_CrsGraph.cpp:1003 [error] - Memory leak: LocalGIDs
- ./packages/epetra/src/Epetra_CrsGraph.cpp:963 [error] - Possible null pointer dereference: LocalGIDs
- ./packages/epetra/src/Epetra_CrsMatrix.cpp:2142 [error] - Possible null pointer dereference: IntSizes
- ./packages/epetra/src/Epetra_CrsMatrix.cpp:2143 [error] - Possible null pointer dereference: IntSizes
- ./packages/epetra/src/Epetra_MapColoring.cpp:249 [error] - Possible null pointer dereference: ColorElementSizes
- ./packages/epetra/src/Epetra_MpiDistributor.cpp:856 [error] - Possible null pointer dereference: sort_val
- ./packages/epetra/src/Epetra_MpiDistributor.cpp:857 [error] - Possible null pointer dereference: index
- ./packages/epetra/src/Epetra_MpiDistributor.cpp:883 [error] - Possible null pointer dereference: offset
- ./packages/epetra/src/Epetra_OffsetIndex.cpp:222 [error] - Possible null pointer dereference: Sizes
- ./packages/epetra/src/Epetra_OffsetIndex.cpp:223 [error] - Possible null pointer dereference: Sizes
- ./packages/epetra/src/Epetra_OskiMatrix.cpp:544 [error] - Memory leak: xp2
- ./packages/epetra/src/Epetra_OskiMatrix.cpp:808 [error] - Memory leak: xp2
- ./packages/epetra/src/Epetra_VbrMatrix.cpp:2506 [error] - Possible null pointer dereference: x_tmp
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localMinValue
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localMaxValue
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localNorm1
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localDot
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localNorm2
- ./packages/epetra/test/MultiVector/ExecuteTestProblems.cpp:235 [error] - Memory leak: localMeanValue
- ./packages/epetra/test/src/Epetra_matrix_data.cpp:197 [error] - Memory leak: nodes
- ./packages/epetraext/example/model_evaluator/GLpApp/GLpApp_GLpYUEpetraDataPool.cpp:2155 [error] - Mismatching allocation and deallocation: Values
- ./packages/epetraext/example/model_evaluator/GLpApp/GLpApp_GLpYUEpetraDataPool.cpp:2156 [error] - Mismatching allocation and deallocation: Indices
- ./packages/epetraext/src/EpetraExt_MatrixMatrix.cpp:989 [error] - Memory leak: iwork
- ./packages/epetraext/src/EpetraExt_MatrixMatrix.cpp:1034 [error] - Memory leak: recvd_rows
- ./packages/epetraext/src/inout/EpetraExt_BlockMapIn.cpp:65 [error] - Resource leak: handle
- ./packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.cpp:201 [error] - Buffer access out-of-bounds: line
- ./packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.cpp:220 [error] - Buffer access out-of-bounds: line
- ./packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.cpp:314 [error] - Common realloc mistake: "iv" nulled but not freed upon failure
- ./packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.cpp:315 [error] - Common realloc mistake: "jv" nulled but not freed upon failure
- ./packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.cpp:316 [error] - Common realloc mistake: "vv" nulled but not freed upon failure
- ./packages/epetraext/src/inout/EpetraExt_MultiVectorIn.cpp:56 [error] - Resource leak: handle
- ./packages/epetraext/src/inout/EpetraExt_mmio.cpp:352 [error] - Resource leak: f
- ./packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.cpp:104 [error] - Buffer access out-of-bounds
- ./packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.cpp:118 [error] - Memory leak: MyGlobalElements
- ./packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.cpp:221 [error] - Memory leak: lcols
- ./packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.cpp:406 [error] - Possible null pointer dereference: xp
- ./packages/epetraext/test/MatrixMatrix/cxx_main.cpp:157 [error] - Memory leak: input_file
- ./packages/epetraext/test/MatrixMatrix/cxx_main.cpp:226 [error] - Memory leak: vals
- ./packages/fei/base/SNL_FEI_Structure.cpp:2948 [error] - Possible null pointer dereference: elemConn
- ./packages/fei/example/poisson/poisson.cpp:275 [error] - Memory leak: nodeIDs
- ./packages/fei/example/poisson/poisson.cpp:275 [error] - Memory leak: soln
- ./packages/fei/support-Trilinos/fei_AztecDMSR_Matrix.cpp:998 [error] - Resource leak: mfp
- ./packages/fei/support-Trilinos/fei_AztecDMSR_Matrix.cpp:1076 [error] - Resource leak: file
- ./packages/fei/support-Trilinos/fei_AztecDVBR_Matrix.cpp:597 [error] - Deallocating a deallocated pointer: infile
- ./packages/fei/support-Trilinos/fei_Aztec_LSVector.cpp:290 [error] - Resource leak: file
- ./packages/fei/test_utils/FEI_tester.cpp:626 [error] - Memory leak: offsets
- ./packages/fei/test_utils/HexBeam.cpp:253 [error] - Memory leak: sharingProcVals
- ./packages/fei/test_utils/HexBeamCR.cpp:279 [error] - Memory leak: sharingProcVals
- ./packages/fei/test_utils/poisson3_main.cpp:265 [error] - Memory leak: nodeIDs
- ./packages/fei/test_utils/poisson3_main.cpp:265 [error] - Memory leak: soln
- ./packages/fei/test_utils/poisson_main.cpp:278 [error] - Memory leak: nodeIDs
- ./packages/fei/test_utils/poisson_main.cpp:278 [error] - Memory leak: soln
- ./packages/galeri/src/Galeri_ReadHB.cpp:532 [error] - Resource leak: in_file
- ./packages/galeri/src/Galeri_ReadHB.cpp:497 [error] - Uninitialized variable: scaled_res_norm
- ./packages/galeri/src/iohb.cpp:258 [error] - Memory leak: mat_type
- ./packages/galeri/src/iohb.cpp:591 [error] - Resource leak: in_file
- ./packages/galeri/src/iohb.cpp:1058 [error] - Resource leak: in_file
- ./packages/galeri/src/iohb.cpp:1154 [error] - Resource leak: in_file
- ./packages/ifpack/src/Ifpack_HIPS.cpp:216 [error] - Memory leak: Y
- ./packages/isorropia/src/epetra/zoltanLib/QueryObject.cpp:1022 [error] - Memory leak: tmprowCols
- ./packages/isorropia/test/levelsolver/TPICrsMatrix_test.cpp:205 [error] - Mismatching allocation and deallocation: NNZperRow
- ./packages/isorropia/test/rebalance_1d_default/rebalance_1d_default.cpp:177 [error] - Memory leak: input_matrix
- ./packages/isorropia/test/rebalance_1d_default/rebalance_1d_default.cpp:259 [error] - Memory leak: input_matrix
- ./packages/isorropia/test/rebalance_1d_default/rebalance_1d_default.cpp:522 [error] - Memory leak: input_graph
- ./packages/isorropia/test/zoltan/rebalance_zoltan.cpp:156 [error] - Memory leak: input_matrix
- ./packages/mesquite/src/Mesh/PatchData.hpp:743 [error] - Common realloc mistake: "boolArray" nulled but not freed upon failure
- ./packages/mesquite/src/Misc/ParameterSet.cpp:83 [error] - Invalid number of character (() when these macros are defined: ''.
- ./packages/mesquite/src/Misc/ParameterSet.cpp:83 [error] - Invalid number of character (() when these macros are defined: '__GNUC__'.
- ./packages/mesquite/testSuite/convert/exo_to_vtk.cpp:71 [error] - Buffer overrun possible for long cmd-line args
- ./packages/mesquite/testSuite/convert/vtk_to_exo.cpp:72 [error] - Buffer overrun possible for long cmd-line args
- ./packages/mesquite/testSuite/higher_order/main.cpp:290 [error] - Memory leak: q1
- ./packages/mesquite/testSuite/higher_order/main.cpp:305 [error] - Memory leak: q3
- ./packages/mesquite/testSuite/higher_order/main.cpp:353 [error] - Memory leak: q1
- ./packages/mesquite/testSuite/unit/SlaveBoundaryVerticesTest.cpp:270 [error] - Deallocating a deallocated pointer: fixed
- ./packages/mesquite/testSuite/unit/Vector3DTest.cpp:73 [error] - Possible null pointer dereference: v
- ./packages/mesquite/testSuite/wrapper_tests/main.cpp:78 [error] - Buffer overrun possible for long cmd-line args
- ./packages/ml/examples/MLAPI/AdaptiveSA_Elasticity.cpp:44 [error] - Buffer overrun possible for long cmd-line args
- ./packages/ml/examples/MLAPI/AdaptiveSA_Tire.cpp:44 [error] - Buffer overrun possible for long cmd-line args
- ./packages/ml/matlab/mlmex.cpp:485 [error] - Mismatching allocation and deallocation: rnz
- ./packages/ml/src/Coarsen/ml_agg_METIS.c:603 [error] - Common realloc mistake: "adjncy2" nulled but not freed upon failure
- ./packages/ml/src/Coarsen/ml_agg_coupled.c:896 [error] - Possible null pointer dereference: node_type
- ./packages/ml/src/Coarsen/ml_agg_min_energy.cpp:1260 [error] - Resource leak: fid
- ./packages/ml/src/Coarsen/ml_agg_uncoupled.c:1027 [error] - Possible null pointer dereference: aggr_stat
- ./packages/ml/src/FEGrid/ml_setup.c:1714 [error] - Possible null pointer dereference: send_leng
- ./packages/ml/src/MLAPI/MLAPI_SAMIS.cpp:88 [error] - Resource leak: fd
- ./packages/ml/src/MLAPI/MLAPI_SAMIS.cpp:224 [error] - Resource leak: fd
- ./packages/ml/src/MLAPI/MLAPI_SAMIS.cpp:401 [error] - Resource leak: fd
- ./packages/ml/src/MLAPI/MLAPI_SAMIS.cpp:534 [error] - Resource leak: f_ker
- ./packages/ml/src/Main/ml_struct.c:4821 [error] - Possible null pointer dereference: sol2
- ./packages/ml/src/Main/mli_solver.c:1480 [error] - Resource leak: fp
- ./packages/ml/src/Main/mli_solver.c:212 [error] - Uninitialized variable: Amat
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1960 [error] - Undefined behaviour: finest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1961 [error] - Undefined behaviour: finest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1962 [error] - Undefined behaviour: finest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1978 [error] - Undefined behaviour: coarsest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1979 [error] - Undefined behaviour: coarsest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_MultiLevelPreconditioner.cpp:1980 [error] - Undefined behaviour: coarsest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_anasazi.cpp:227 [error] - Possible null pointer dereference: tmp_
- ./packages/ml/src/Utils/ml_aztec_utils.c:742 [error] - Undefined behaviour: finest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_aztec_utils.c:752 [error] - Undefined behaviour: coarsest is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:2819 [error] - Resource leak: fp
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:2924 [error] - Resource leak: fp
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:3033 [error] - Resource leak: fp
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:3121 [error] - Memory leak: send
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:3121 [error] - Memory leak: gvalues
- ./packages/ml/src/Utils/ml_epetra_utils.cpp:3144 [error] - Resource leak: fin
- ./packages/moertel/src/mrtr_utils.cpp:722 [error] - Mismatching allocation and deallocation: out
- ./packages/moertel/src/mrtr_utils.cpp:711 [error] - Resource leak: out
- ./packages/moertel/src/mrtr_utils.cpp:767 [error] - Resource leak: out
- ./packages/moertel/src/mrtr_utils.cpp:818 [error] - Mismatching allocation and deallocation: out
- ./packages/moertel/src/mrtr_utils.cpp:808 [error] - Resource leak: out
- ./packages/moocho/src/NLPInterfacePack/src/abstract/interfaces/NLPInterfacePack_NLP.cpp:255 [error] - Null pointer dereference
- ./packages/moocho/src/NLPInterfacePack/src/abstract/interfaces/NLPInterfacePack_NLP.cpp:270 [error] - Null pointer dereference
- ./packages/moocho/src/NLPInterfacePack/src/abstract/interfaces/NLPInterfacePack_NLPObjGrad.cpp:112 [error] - Null pointer dereference
- ./packages/nox/src-loca/src-lapack/LOCA_Eigensolver_DGGEVStrategy.C:191 [error] - Memory leak: vr
- ./packages/nox/src-loca/src-lapack/LOCA_Eigensolver_DGGEVStrategy.C:191 [error] - Memory leak: alphar
- ./packages/nox/src-loca/src-lapack/LOCA_Eigensolver_DGGEVStrategy.C:191 [error] - Memory leak: alphai
- ./packages/nox/src-loca/src-lapack/LOCA_Eigensolver_DGGEVStrategy.C:191 [error] - Memory leak: beta
- ./packages/nox/src-loca/src-lapack/LOCA_Eigensolver_DGGEVStrategy.C:191 [error] - Memory leak: work
- ./packages/nox/test/basic/NOXFiniteValue.C:74 [error] - Passing value -1.0 to sqrt() leads to undefined result
- ./packages/pamgen/example/pamgen_test_driver.c:259 [error] - Memory leak: echo_char_array
- ./packages/pamgen/example/pamgen_test_driver.c:270 [error] - Memory leak: error_char_array
- ./packages/pamgen/example/pamgen_test_driver.c:283 [error] - Memory leak: warning_char_array
- ./packages/pamgen/example/pamgen_test_driver.c:296 [error] - Memory leak: info_char_array
- ./packages/pamgen/example/pamgen_test_driver_l.c:257 [error] - Memory leak: echo_char_array
- ./packages/pamgen/example/pamgen_test_driver_l.c:268 [error] - Memory leak: error_char_array
- ./packages/pamgen/example/pamgen_test_driver_l.c:281 [error] - Memory leak: warning_char_array
- ./packages/pamgen/example/pamgen_test_driver_l.c:294 [error] - Memory leak: info_char_array
- ./packages/pamgen/extra_functions/pamgen_extras.cpp:72 [error] - Memory leak: req
- ./packages/pamgen/extra_functions/pamgen_extras.cpp:148 [error] - Memory leak: req
- ./packages/phalanx/src/multidimensional_array/version_1/MDArrayExample.cpp:198 [error] - Mismatching allocation and deallocation: memory_pool
- ./packages/rythmos/adapters/gaasp/tpl_src/FMethod.cpp:26 [error] - Mismatching allocation and deallocation: xtmp1
- ./packages/rythmos/adapters/gaasp/tpl_src/FMethod.cpp:31 [error] - Mismatching allocation and deallocation: xtmp1
- ./packages/rythmos/adapters/gaasp/tpl_src/GErrorEstimate.cpp:365 [error] - Resource leak: fp
- ./packages/rythmos/adapters/gaasp/tpl_src/GForwardSolve.cpp:391 [error] - Mismatching allocation and deallocation: y
- ./packages/sacado/test/performance/fad_expr.cpp:121 [error] - Memory leak: x1dot
- ./packages/sacado/test/performance/fad_expr.cpp:121 [error] - Memory leak: x2dot
- ./packages/sacado/test/performance/fad_expr.cpp:121 [error] - Memory leak: ydot
- ./packages/stk/stk_util/stk_util/parallel/ParallelComm.cpp:490 [error] - Uninitialized variable: local_result
- ./packages/stokhos/example/twoD_diffusion_galerkin_example.cpp:322 [error] - Memory leak: bcIndices
- ./packages/stratimikos/adapters/belos/example/LOWSFactory/Tpetra/belos_tpetra_thyra_lowsf_hb.cpp:253 [error] - Memory leak: cvals
- ./packages/teuchos/test/MemoryManagement/Array_test.cpp:395 [error] - Invalid iterator: iter
- ./packages/teuchos/test/MemoryManagement/RCP_ForwardDeclUnitTests.cpp:50 [error] - Null pointer dereference
- ./packages/teuchos/test/MemoryManagement/RCP_ForwardDeclUnitTests.cpp:44 [error] - Null pointer dereference
- ./packages/thyra/example/operator_vector/sillyCgSolve_serial.cpp:275 [error] - Invalid number of character (() when these macros are defined: 'HAVE_TEUCHOS_GNU_MP;HAVE_THYRA_COMPLEX'.
- ./packages/tifpack/src/not_yet_converted/Tifpack_Partitioner.hpp:35 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./packages/tifpack/src/not_yet_converted/Tifpack_ILU.hpp:596 [error] - Invalid number of character (() when these macros are defined: ''.
- ./packages/tifpack/src/not_yet_converted/Tifpack_Partitioner.hpp:35 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_TIFPACK_METIS'.
- ./packages/tifpack/src/not_yet_converted/Tifpack_OverlapFactor.cpp:68 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./packages/trilinoscouplings/examples/scaling/example_CurlLSFEM.cpp:1540 [error] - Memory leak: mu
- ./packages/trilinoscouplings/examples/scaling/example_CurlLSFEM.cpp:1540 [error] - Memory leak: ownedFaceIds
- ./packages/trilinoscouplings/examples/scaling/example_DivLSFEM.cpp:1636 [error] - Memory leak: mu
- ./packages/trilinoscouplings/examples/scaling/example_Poisson.cpp:734 [error] - Memory leak: nodes_per_element
- ./packages/trilinoscouplings/examples/scaling/example_Poisson.cpp:734 [error] - Memory leak: element_attributes
- ./packages/trilinoscouplings/examples/scaling/example_Poisson.cpp:734 [error] - Memory leak: elements
- ./packages/triutils/src/Trilinos_Util_CrsMatrixGallery.cpp:3320 [error] - Mismatching allocation and deallocation: Values
- ./packages/triutils/src/Trilinos_Util_CrsMatrixGallery.cpp:3321 [error] - Mismatching allocation and deallocation: Indices
- ./packages/triutils/src/Trilinos_Util_ReadHb2Epetra.cpp:70 [error] - Resource leak: in_file
- ./packages/triutils/src/Trilinos_Util_ReadHb2EpetraVbr.cpp:79 [error] - Possible null pointer dereference: ElementSizeList
- ./packages/triutils/src/Trilinos_Util_read_coo.cpp:139 [error] - Resource leak: data
- ./packages/triutils/src/Trilinos_Util_read_hb.cpp:263 [error] - Resource leak: in_file
- ./packages/triutils/src/Trilinos_Util_smsrres.cpp:86 [error] - Uninitialized variable: scaled_res_norm
- ./packages/triutils/src/iohb.cpp:262 [error] - Memory leak: mat_type
- ./packages/zoltan/example/C/coloring/zcol.c:530 [error] - Dangerous usage of 'param' (strncpy doesn't always 0-terminate it)
- ./packages/zoltan/example/C/coloring/zcoldriver.c:450 [error] - Dangerous usage of 'param' (strncpy doesn't always 0-terminate it)
- ./packages/zoltan/example/C/problemGRAPH.c:218 [error] - Memory leak: parts
- ./packages/zoltan/example/C/simpleBLOCK.c:169 [error] - Memory leak: parts
- ./packages/zoltan/example/C/simpleGRAPH.c:207 [error] - Memory leak: parts
- ./packages/zoltan/example/C/simplePHG.c:225 [error] - Memory leak: parts
- ./packages/zoltan/siMPI/pyMPI/siMPI/fortran_grinder.c:217 [error] - Resource leak: file
- ./packages/zoltan/siMPI/pyMPI/siMPI/fortran_parameterize.c:96 [error] - Resource leak: file
- ./packages/zoltan/siMPI/pyMPI/siMPI/tests/monteCarloPi.c:54 [error] - Buffer access out-of-bounds: ranks
- ./packages/zoltan/siMPI/pyMPI/siMPI/tests/trapezoidal.c:88 [error] - Uninitialized variable: integral
- ./packages/zoltan/src/Utilities/Memory/mem.c:223 [error] - syntax error
- ./packages/zoltan/src/ch/ch_dist_graph.c:436 [error] - Memory leak: size
- ./packages/zoltan/src/ch/ch_dist_graph.c:161 [error] - Memory leak: send_xadj
- ./packages/zoltan/src/ch/ch_dist_graph.c:381 [error] - Memory leak: send_adjncy
- ./packages/zoltan/src/ch/ch_dist_graph.c:198 [error] - Memory leak: vtx_list
- ./packages/zoltan/src/ch/ch_dist_graph.c:174 [error] - Memory leak: send_x
- ./packages/zoltan/src/ch/ch_dist_graph.c:180 [error] - Memory leak: send_y
- ./packages/zoltan/src/ch/ch_dist_graph.c:168 [error] - Memory leak: send_vwgts
- ./packages/zoltan/src/coloring/color_test.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/coloring/coloring.c:531 [error] - Possible null pointer dereference: rand_key
- ./packages/zoltan/src/coloring/coloring.c:1006 [error] - Possible null pointer dereference: rand_key
- ./packages/zoltan/src/coloring/coloring.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/driver/dr_chaco_io.c:91 [error] - Resource leak: fp
- ./packages/zoltan/src/driver/dr_chaco_io.c:487 [error] - Memory leak: local_ids
- ./packages/zoltan/src/driver/dr_chaco_io.c:487 [error] - Memory leak: vtx_list
- ./packages/zoltan/src/driver/dr_chaco_io.c:174 [error] - Undefined behaviour: chaco_fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/zoltan/src/driver/dr_compress.c:121 [error] - Memory leak: file
- ./packages/zoltan/src/driver/dr_err.c:63 [error] - Common realloc mistake: "error_info" nulled but not freed upon failure
- ./packages/zoltan/src/driver/dr_err.c:78 [error] - Common realloc mistake: "error_info" nulled but not freed upon failure
- ./packages/zoltan/src/driver/dr_exoII_io.c:517 [error] - Memory leak: alloc_cnt
- ./packages/zoltan/src/driver/dr_exoII_ioCPP.cpp:514 [error] - Memory leak: alloc_cnt
- ./packages/zoltan/src/driver/dr_hg_io.c:194 [error] - Resource leak: fp
- ./packages/zoltan/src/driver/dr_hg_io.c:643 [error] - Memory leak: old_hvertex_proc
- ./packages/zoltan/src/driver/dr_hg_io.c:643 [error] - Memory leak: send
- ./packages/zoltan/src/driver/dr_hg_io.c:906 [error] - Memory leak: edgeIdx
- ./packages/zoltan/src/driver/dr_hg_io.c:1054 [error] - Memory leak: linestr
- ./packages/zoltan/src/driver/dr_hg_io.c:1531 [error] - Memory leak: pins
- ./packages/zoltan/src/driver/dr_hg_io.c:1544 [error] - Memory leak: count
- ./packages/zoltan/src/driver/dr_hg_io.c:1531 [error] - Memory leak: eidList
- ./packages/zoltan/src/driver/dr_hg_io.c:1531 [error] - Memory leak: idx
- ./packages/zoltan/src/driver/dr_hg_io.c:816 [error] - Undefined behaviour: filename is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./packages/zoltan/src/driver/dr_loadbal.c:154 [error] - Memory leak: psize
- ./packages/zoltan/src/driver/dr_loadbalCPP.cpp:162 [error] - Memory leak: psize
- ./packages/zoltan/src/driver/dr_maps.c:143 [error] - Common realloc mistake: "tmp_maps" nulled but not freed upon failure
- ./packages/zoltan/src/driver/dr_maps.c:570 [error] - Memory leak: sindex
- ./packages/zoltan/src/driver/dr_mapsCPP.cpp:144 [error] - Common realloc mistake: "tmp_maps" nulled but not freed upon failure
- ./packages/zoltan/src/driver/dr_mapsCPP.cpp:542 [error] - Memory leak: sindex
- ./packages/zoltan/src/driver/dr_migrate.c:534 [error] - Memory leak: proc_ids
- ./packages/zoltan/src/driver/dr_migrate.c:534 [error] - Memory leak: change
- ./packages/zoltan/src/driver/dr_mm_readfile.c:195 [error] - Memory leak: sendcount
- ./packages/zoltan/src/driver/dr_mm_readfile.c:195 [error] - Memory leak: start
- ./packages/zoltan/src/driver/dr_mm_readfile.c:195 [error] - Memory leak: outVals
- ./packages/zoltan/src/driver/dr_mm_readfile.c:510 [error] - Memory leak: myIJV
- ./packages/zoltan/src/driver/dr_mm_readfile.c:510 [error] - Memory leak: vwgts
- ./packages/zoltan/src/driver/dr_mm_readfile.c:510 [error] - Memory leak: ewgts
- ./packages/zoltan/src/driver/dr_mmio.c:354 [error] - Resource leak: f
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: start
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: adj
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: vwgts
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: x
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: y
- ./packages/zoltan/src/driver/dr_random_io.c:222 [error] - Memory leak: z
- ./packages/zoltan/src/driver/dr_random_io.c:109 [error] - Resource leak: fpg
- ./packages/zoltan/src/driver/dr_random_io.c:379 [error] - Memory leak: start
- ./packages/zoltan/src/driver/dr_random_io.c:379 [error] - Memory leak: vwgts
- ./packages/zoltan/src/driver/dr_random_io.c:379 [error] - Memory leak: x
- ./packages/zoltan/src/driver/dr_random_io.c:379 [error] - Memory leak: y
- ./packages/zoltan/src/driver/dr_random_io.c:379 [error] - Memory leak: z
- ./packages/zoltan/src/order/order_struct.c:47 [error] - Possible null pointer dereference: zz
- ./packages/zoltan/src/phg/phg.c:1081 [error] - Possible null pointer dereference: outparts
- ./packages/zoltan/src/phg/phg_Vcycle.c:815 [error] - Buffer access out-of-bounds
- ./packages/zoltan/src/phg/phg_build.c:16 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/phg/phg_build_calls.c:340 [error] - Possible null pointer dereference: sendIntBuf
- ./packages/zoltan/src/phg/phg_build_calls.c:16 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/phg/phg_lookup.c:16 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/phg/phg_verbose.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/simple/block.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/simple/cyclic.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/simple/random.c:17 [error] - Invalid number of character ({) when these macros are defined: '__cplusplus'.
- ./packages/zoltan/src/tpls/scotch_interface.c:774 [error] - Resource leak: stratfile
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/chaco2chaco/main.c:136 [error] - Buffer overrun possible for long cmd-line args
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/add_to_log.c:73 [error] - Resource leak: audit
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/input/read_params.c:368 [error] - Array 'cparams[1]' index 1 out of bounds
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/input/read_params.c:372 [error] - Array 'cparams[1]' index 1 out of bounds
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/optimize/func3d.c:926 [error] - Array 'grad[3]' index 3 out of bounds
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/optimize/func3d.c:1061 [error] - Array 'hess[3][3]' index hess[3][3] out of bounds
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_err.c:60 [error] - Common realloc mistake: "error_info" nulled but not freed upon failure
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_err.c:75 [error] - Common realloc mistake: "error_info" nulled but not freed upon failure
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_exo_util.c:160 [error] - Memory leak: eblk_ecnts
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_exo_util.c:143 [error] - Memory leak: values
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_graph.c:337 [error] - Memory leak: pt_list
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_graph.c:337 [error] - Memory leak: hold_elem
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_graph.c:414 [error] - Memory leak: tmp_element
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_groups.c:254 [error] - Memory leak: nadj_per_grp
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:481 [error] - Memory leak: tmp_start
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:481 [error] - Memory leak: tmp_adj
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:495 [error] - Memory leak: tmp_vwgts
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:488 [error] - Memory leak: elem_map
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:509 [error] - Memory leak: tmp_x
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:516 [error] - Memory leak: tmp_y
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:522 [error] - Memory leak: tmp_z
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:502 [error] - Memory leak: tmp_ewgts
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:369 [error] - Resource leak: fp
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:1250 [error] - Memory leak: num_cmap_alloc
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2211 [error] - Memory leak: pt_list
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2211 [error] - Memory leak: hold_elem
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2088 [error] - Memory leak: proc_cnt
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2088 [error] - Memory leak: local_number
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2211 [error] - Memory leak: problems
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2016 [error] - Memory leak: rows
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2016 [error] - Memory leak: list
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2088 [error] - Memory leak: global_index
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_loadbal.c:2526 [error] - Memory leak: mask
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_output.c:875 [error] - Common realloc mistake: "tmp_connect" nulled but not freed upon failure
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_output.c:790 [error] - Memory leak: tmp_connect
- ./packages/zoltan/src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/elb_output.c:942 [error] - Memory leak: node_vals
- ./packages/zoltan/src/util/vtk_view.cpp:1578 [error] - Common realloc mistake: "gids" nulled but not freed upon failure
- ./packages/zoltan/src/util/vtk_view.cpp:1579 [error] - Common realloc mistake: "pids" nulled but not freed upon failure
- ./packages/zoltan/src/util/vtk_view.cpp:1609 [error] - Common realloc mistake: "gids" nulled but not freed upon failure
- ./packages/zoltan/src/util/vtk_view.cpp:1610 [error] - Common realloc mistake: "pids" nulled but not freed upon failure
- ./packages/zoltan/src/util/vtk_view.cpp:1848 [error] - Memory leak: procs
- ./packages/zoltan/src/util/vtk_view.cpp:1973 [error] - Memory leak: buf1
- ./packages/zoltan/test/Utilities_Tests/Communication/comm_main.c:189 [error] - Resource leak: in_file
- ./packages/zoltan/test/Utilities_Tests/Communication/comm_main_2.cpp:203 [error] - Resource leak: in_file
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:19:18 +0000, based on results by cppcheck 1.46