cppcheck analysis of mpich2_1.2.1.1-1.dsc
- ./examples/pmandel.c:571 [error] - Memory leak: out_grid_array
- ./examples/pmandel_service.c:635 [error] - Memory leak: out_grid_array
- ./examples/pmandel_spaserv.c:658 [error] - Memory leak: out_grid_array
- ./examples/pmandel_spawn.c:648 [possible error] - Memory leak: out_grid_array
- ./examples/windows/pmandel_vis/mpi.cpp:255 [error] - Mismatching allocation and deallocation: buffer
- ./examples/windows/pmandel_vis/mpi.cpp:275 [error] - Mismatching allocation and deallocation: buffer
- ./examples/windows/pmandel_vis/pman_visView.cpp:375 [possible error] - Memory leak: canvas
- ./examples/windows/pmandel_vis/sock.cpp:350 [error] - Mismatching allocation and deallocation: buffer
- ./examples/windows/pmandel_vis/sock.cpp:370 [error] - Mismatching allocation and deallocation: buffer
- ./examples/windows/pmitest/pmitest.c:129 [possible error] - Memory leak: key
- ./src/mpe2/src/graphics/contrib/mandel/pmandel.c:395 [error] - Resource leak: inf
- ./src/mpe2/src/slog2sdk/trace_sample/src/trace_impl.c:552 [error] - Dangerous usage of 'label' (strncpy doesn't always 0-terminate it)
- ./src/mpe2/src/unused/src/mpe_log_merge.c:597 [possible error] - Resource leak: fp
- ./src/mpe2/src/unused/src/mpe_log_merge.c:77 [error] - Uninitialized variable: title
- ./src/mpe2/src/unused/src/mpe_log_merge.c:426 [error] - Uninitialized variable: readRecHdr
- ./src/mpe2/src/unused/src/mpe_log_merge.c:427 [error] - Uninitialized variable: readRecHdr
- ./src/mpe2/src/unused/src/states.c:284 [error] - Resource leak: fp
- ./src/mpe2/src/wrappers/src/log_mpi_core.c:3725 [possible error] - Resource leak: procname_file
- ./src/mpe2/src/wrappers/src/mpe_proff.c:781 [possible error] - Memory leak: la_ints
- ./src/mpi/group/group_difference.c:166 [error] - Uninitialized variable: new_group_ptr
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:112 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:112 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_LSEEK64'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'HPUX'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'HPUX;MPICH2'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'HPUX;PRINT_ERR_MSG'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:112 [error] - Invalid number of character ({) when these macros are defined: 'MPICH2'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:112 [error] - Invalid number of character ({) when these macros are defined: 'PRINT_ERR_MSG'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'SPPUX'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'SPPUX;MPICH2'.
- ./src/mpi/romio/adio/ad_hfs/ad_hfs_fcntl.c:113 [error] - Invalid number of character ({) when these macros are defined: 'SPPUX;PRINT_ERR_MSG'.
- ./src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c:79 [error] - Uninitialized variable: diff
- ./src/mpi/romio/test/noncontig_coll2.c:180 [possible error] - Memory leak: disp
- ./src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_ckpt.c:475 [error] - Resource leak: fd
- ./src/mpid/ch3/channels/sctp/src/ch3_progress.c:1349 [error] - Possible null pointer dereference: rreq - otherwise it is redundant to check if rreq is null at line 1355
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:266 [error] - Resource leak: fd
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:509 [error] - Resource leak: fd
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:941 [error] - Resource leak: fd
- ./src/pm/mpd/mpdroot.c:76 [error] - Resource leak: conf_file
- ./src/pm/smpd/smpd_adreg.cpp:594 [error] - Mismatching allocation and deallocation: pszDnsComputerName
- ./src/pm/smpd/smpd_adreg.cpp:634 [error] - Mismatching allocation and deallocation: pszDnsComputerName
- ./src/pm/smpd/smpd_host_util.c:466 [error] - Resource leak: fin
- ./src/pm/util/rm.c:376 [error] - Resource leak: fp
- ./src/util/logging/rlog/irlog2rlog.c:833 [error] - Resource leak: fout
- ./src/util/logging/rlog/rimshot/rimshotView.cpp:342 [error] - Mismatching allocation and deallocation: pdNextPixel
- ./src/util/logging/rlog/rimshot/rimshot_draw.cpp:402 [error] - Mismatching allocation and deallocation: pdNextPixel
- ./test/basic/sr.c:120 [possible error] - Memory leak: msg
- ./test/basic/srvec.c:207 [possible error] - Memory leak: buf
- ./test/mpi/basic/netmpi.c:525 [possible error] - Resource leak: out
- ./test/mpi/coll/scatter2.c:71 [possible error] - Memory leak: vecin
- ./test/mpi/coll/scatter3.c:85 [possible error] - Memory leak: vecin
- ./test/mpi/comm/iccreate.c:153 [error] - Memory leak: reqs
- ./test/mpi/comm/icsplit.c:150 [error] - Memory leak: reqs
- ./test/mpi/cxx/coll/uallreduce.cxx:63 [error] - Mismatching allocation and deallocation: vin
- ./test/mpi/cxx/coll/uallreduce.cxx:64 [error] - Mismatching allocation and deallocation: vout
- ./test/mpi/cxx/coll/uexscan.cxx:77 [error] - Mismatching allocation and deallocation: vin
- ./test/mpi/cxx/coll/uexscan.cxx:78 [error] - Mismatching allocation and deallocation: vout
- ./test/mpi/cxx/coll/ureduce.cxx:69 [error] - Mismatching allocation and deallocation: vin
- ./test/mpi/cxx/coll/ureduce.cxx:70 [error] - Mismatching allocation and deallocation: vout
- ./test/mpi/cxx/coll/uscan.cxx:75 [error] - Mismatching allocation and deallocation: vin
- ./test/mpi/cxx/coll/uscan.cxx:76 [error] - Mismatching allocation and deallocation: vout
- ./test/mpi/cxx/pt2pt/bsend1cxx.cxx:106 [error] - Mismatching allocation and deallocation: buf
- ./test/mpi/datatype/unpack.c:80 [error] - Memory leak: mem_buf
- ./test/mpi/init/exitst3.c:22 [error] - Possible null pointer dereference: p
- ./test/mpi/manual/testconnectserial.c:83 [error] - Uninitialized variable: size
- ./test/mpi/perf/dtpack.c:66 [error] - Memory leak: margin
- ./test/mpi/pt2pt/cancelrecv.c:137 [possible error] - Memory leak: buf0
- ./test/mpi/pt2pt/cancelrecv.c:137 [possible error] - Memory leak: buf1
- ./test/mpi/pt2pt/cancelrecv.c:137 [possible error] - Memory leak: buf2
- ./test/mpi/pt2pt/sendflood.c:154 [possible error] - Resource leak: pf
- ./test/mpi/spawn/spawninfo1.c:47 [error] - Dangerous usage of 'wd' (strncpy doesn't always 0-terminate it)
- ./test/mpi/spawn/spawnminfo1.c:48 [error] - Dangerous usage of 'wd' (strncpy doesn't always 0-terminate it)
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:58:51 +0000, based on results by cppcheck 1.41-modif