cppcheck analysis of mpich2_1.3.2-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 [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/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 [error] - Memory leak: key
- ./src/mpe2/src/graphics/contrib/mandel/pmandel.c:395 [error] - Resource leak: inf
- ./src/mpe2/src/logging/src/clog_sync.c:244 [error] - Possible null pointer dereference: gpofst_pairs
- ./src/mpe2/src/misc/src/dbxtest.c:21 [error] - Null pointer dereference
- ./src/mpe2/src/misc/src/dbxtest2.c:20 [error] - Null pointer dereference
- ./src/mpe2/src/slog2sdk/src/logformat/trace/trace_check_timeorder.c:87 [error] - Buffer overrun possible for long cmd-line args
- ./src/mpe2/src/slog2sdk/src/logformat/trace/trace_print.c:75 [error] - Buffer overrun possible for long cmd-line args
- ./src/mpe2/src/slog2sdk/trace_sample/src/trace_impl.c:614 [error] - Memory leak: type
- ./src/mpe2/src/slog2sdk/trace_sample/src/trace_impl.c:790 [error] - Memory leak: ymap
- ./src/mpe2/src/slog2sdk/trace_sample/src/trace_impl.c:1134 [error] - Memory leak: cmplx
- ./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:77 [error] - Uninitialized variable: title
- ./src/mpe2/src/unused/src/mpe_log_merge.c:426 [error] - Uninitialized variable: readRecHdr
- ./src/mpe2/src/unused/src/states.c:284 [error] - Resource leak: fp
- ./src/mpe2/src/wrappers/src/mpe_proff.c:1279 [error] - Possible null pointer dereference: lrequest
- ./src/mpe2/src/wrappers/src/mpe_proff.c:750 [error] - Data is allocated but not initialized: la_ints
- ./src/mpe2/src/wrappers/src/mpe_proff.c:754 [error] - Uninitialized variable: ls_ints
- ./src/mpi/datatype/type_get_name.c:175 [error] - Possible null pointer dereference: datatype_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:113 [error] - Invalid number of character ({) when these macros are defined: 'MPICH2;SPPUX'.
- ./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: 'PRINT_ERR_MSG;SPPUX'.
- ./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_pfs/ad_pfs_fcntl.c:62 [error] - Uninitialized variable: err
- ./src/mpi/romio/common/dataloop/romio_dataloop.c:122 [error] - Memory leak: dtp
- ./src/mpi/romio/common/dataloop/romio_dataloop.c:146 [error] - Memory leak: dtp
- ./src/mpi/romio/common/dataloop/romio_dataloop.c:346 [error] - Memory leak: dtp
- ./src/mpi/romio/common/dataloop/romio_dataloop.c:366 [error] - Memory leak: dtp
- ./src/mpi/romio/common/dataloop/romio_dataloop.c:386 [error] - Memory leak: dtp
- ./src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_ckpt.c:261 [error] - Resource leak: f
- ./src/mpid/ch3/channels/sctp/src/ch3_progress.c:17 [error] - mismatching number of '(' and ')' in this line: defined(MPICH_IS_THREADED
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback.c:57 [error] - Possible null pointer dereference: rreq
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback.c:58 [error] - Possible null pointer dereference: rreq
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback_rzv.c:54 [error] - Possible null pointer dereference: rreq
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback_rzv.c:55 [error] - Possible null pointer dereference: rreq
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback_short.c:60 [error] - Possible null pointer dereference: rreq
- ./src/mpid/dcmfd/src/pt2pt/mpidi_callback_short.c:61 [error] - Possible null pointer dereference: rreq
- ./src/openpa/test/test_barriers.c:368 [error] - Memory leak: thread_data
- ./src/openpa/test/test_barriers.c:644 [error] - Memory leak: thread_data
- ./src/openpa/test/test_barriers.c:759 [error] - Memory leak: thread_data
- ./src/openpa/test/test_queue.c:247 [error] - Memory leak: expect_sn
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:1198 [error] - Common realloc mistake: "maps" nulled but not freed upon failure
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:1923 [error] - Common realloc mistake: "ret" nulled but not freed upon failure
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-linux.c:1610 [error] - Resource leak: hpfd
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology-windows.c:487 [error] - Common realloc mistake: "procInfo" nulled but not freed upon failure
- ./src/pm/hydra/tools/bind/hwloc/hwloc/src/topology.c:1648 [error] - Possible null pointer dereference: objs - otherwise it is redundant to check if objs is null at line 1649
- ./src/pm/hydra/tools/bind/hwloc/hwloc/utils/lstopo-color.c:52 [error] - Common realloc mistake: "colors" nulled but not freed upon failure
- ./src/pm/hydra/tools/bind/hwloc/hwloc/utils/lstopo-windows.c:219 [error] - Common realloc mistake: "colors" nulled but not freed upon failure
- ./src/pm/hydra/tools/bind/plpa/plpa/src/plpa-taskset/tokens.c:949 [error] - Memory leak: yyptr
- ./src/pm/mpd/mpdroot.c:103 [error] - Resource leak: conf_file
- ./src/pm/smpd/smpd_host_util.c:466 [error] - Resource leak: fin
- ./src/pm/util/pmiserv.c:487 [error] - Memory leak: kvs
- ./src/pm/util/rm.c:364 [error] - Resource leak: fp
- ./src/pmi/simple/simple_pmi.c:904 [error] - Uninitialized variable: cmd
- ./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/mpi/comm/iccreate.c:153 [error] - Memory leak: reqs
- ./test/mpi/comm/icsplit.c:150 [error] - Memory leak: reqs
- ./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] - Null pointer dereference
- ./test/mpi/perf/dtpack.c:66 [error] - Memory leak: margin
- ./test/mpi/perf/dtpack.c:339 [error] - Memory leak: displs
- ./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 Fri, 11 Feb 2011 06:58:10 +0000, based on results by cppcheck 1.46