cppcheck analysis of petsc_3.1.dfsg-11.dsc
- ./src/dm/da/src/da2.c:884 [error] - Invalid number of character ([) when these macros are defined: 'PETSC_USE_COMPLEX;new'.
- ./src/dm/da/src/da2.c:884 [error] - Invalid number of character ([) when these macros are defined: 'new'.
- ./src/dm/mesh/examples/tests/imesh1.cxx:639 [error] - Memory leak: tmp
- ./src/dm/mesh/examples/tests/meshing.cxx:64 [error] - Mismatching allocation and deallocation: coord_template
- ./src/dm/mesh/examples/tutorials/navierStokes.cxx:742 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/navierStokes.cxx:790 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/navierStokes.cxx:792 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/navierStokes.cxx:796 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokes.cxx:660 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokes.cxx:708 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokes.cxx:710 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokes.cxx:714 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokesPeriodic.cxx:829 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokesPeriodic.cxx:876 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokesPeriodic.cxx:878 [error] - Uninitialized variable: numBasisFuncs
- ./src/dm/mesh/examples/tutorials/stokesPeriodic.cxx:882 [error] - Uninitialized variable: numBasisFuncs
- ./src/mat/examples/tests/ex81.c:59 [error] - Buffer access out-of-bounds
- ./src/mat/examples/tests/ex81.c:68 [error] - Buffer access out-of-bounds
- ./src/mat/impls/adic/nladic.c:41 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:42 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:79 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:82 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:186 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:187 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/adic/nladic.c:216 [error] - Uninitialized variable: ad_f
- ./src/mat/impls/aij/mpi/mpiptap.c:43 [error] - Uninitialized variable: merge
- ./src/semiLagrange/examples/tutorials/ex1.c:131 [error] - Uninitialized variable: result
- ./src/semiLagrange/examples/tutorials/ex2.c:130 [error] - Uninitialized variable: result
- ./src/snes/examples/tutorials/ex10d/ex10.c:497 [error] - Resource leak: fptr
- ./src/snes/examples/tutorials/ex8.c:310 [error] - Array 'phi[3]' index 3 out of bounds
- ./src/snes/utils/damg.c:155 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 158
- ./src/snes/utils/damg.c:208 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 215
- ./src/snes/utils/damg.c:442 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 448
- ./src/snes/utils/damg.c:602 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 610
- ./src/snes/utils/damgsnes.c:47 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 55
- ./src/snes/utils/damgsnes.c:555 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 567
- ./src/snes/utils/damgsnes.c:812 [error] - Possible null pointer dereference: dmmg - otherwise it is redundant to check if dmmg is null at line 815
- ./src/sys/adic/adic/alloc.c:388 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./src/sys/draw/impls/x/xvgrab.c:37 [error] - Invalid number of character ({) when these macros are defined: 'foo'.
- ./src/sys/examples/tests/ex2.c:12 [error] - Possible null pointer dereference: x
- ./src/ts/examples/tutorials/ex9.c:342 [error] - Uninitialized variable: user
- ./src/ts/examples/tutorials/ex9.c:475 [error] - Uninitialized variable: user
- ./src/ts/examples/tutorials/ex9.c:613 [error] - Uninitialized variable: user
- ./src/ts/examples/tutorials/ex9.c:845 [error] - Uninitialized variable: user
- ./src/ts/examples/tutorials/ex9.c:1017 [error] - Uninitialized variable: user
- ./src/vec/vec/examples/tutorials/ex1e.c:160 [error] - Array 'dots[0]' index 1 out of bounds
- ./src/vec/vec/examples/tutorials/ex1e.c:161 [error] - Array 'dots[0]' index 2 out of bounds
- ./src/vec/vec/utils/vscat.c:322 [error] - Uninitialized variable: sto
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sat, 09 Apr 2011 06:58:17 +0000, based on results by cppcheck 1.46