cppcheck analysis of lustre_1.8.3-4.dsc
- ./libsysio/drivers/incore/fs_incore.c:853 [error] - Possible null pointer dereference: ino - otherwise it is redundant to check if ino is null at line 880
- ./libsysio/drivers/incore/fs_incore.c:853 [error] - Possible null pointer dereference: ino - otherwise it is redundant to check if ino is null at line 855
- ./libsysio/src/rw.c:579 [error] - Memory leak: xtv
- ./libsysio/src/rw.c:579 [error] - Memory leak: iov
- ./libsysio/src/rw.c:1108 [error] - Memory leak: xtv
- ./libsysio/src/rw.c:1108 [error] - Memory leak: iov
- ./libsysio/src/rw.c:1195 [error] - Invalid number of character (() when these macros are defined: '_LARGEFILE64_SOURCE;__GLIBC'.
- ./libsysio/src/rw.c:1195 [error] - Invalid number of character (() when these macros are defined: '__GLIBC'.
- ./lustre/liblustre/tests/replay_ost_single.c:126 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:127 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:138 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:139 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:169 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:170 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:186 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/replay_ost_single.c:187 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/sanity.c:512 [error] - Buffer access out-of-bounds: buf
- ./lustre/liblustre/tests/sanity.c:494 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:514 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:628 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:746 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:811 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:1054 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:1100 [error] - Resource leak: fd
- ./lustre/llite/file.c:1209 [error] - Uninitialized variable: rc
- ./lustre/mds/lproc_mds.c:157 [error] - Possible null pointer dereference: param - otherwise it is redundant to check if param is null at line 161
- ./lustre/mds/mds_fs.c:462 [error] - Possible null pointer dereference: lsd - otherwise it is redundant to check if lsd is null at line 467
- ./lustre/obdfilter/filter.c:796 [error] - Possible null pointer dereference: fsd - otherwise it is redundant to check if fsd is null at line 801
- ./lustre/osc/osc_request.c:3770 [error] - Possible null pointer dereference: lumk - otherwise it is redundant to check if lumk is null at line 3777
- ./lustre/tests/flocks_test.c:175 [error] - Resource leak: fd
- ./lustre/tests/ll_dirstripe_verify.c:268 [error] - Resource leak: dir
- ./lustre/tests/ll_sparseness_verify.c:135 [error] - Memory leak: offsets
- ./lustre/tests/ll_sparseness_verify.c:135 [error] - Memory leak: buf
- ./lustre/tests/ll_sparseness_verify.c:135 [error] - Resource leak: fd
- ./lustre/tests/mpi/parallel_grouplock.c:911 [error] - Deallocating a deallocated pointer: fd
- ./lustre/tests/mpi/write_append_truncate.c:558 [error] - Memory leak: append_buf
- ./lustre/tests/mpi/write_append_truncate.c:558 [error] - Memory leak: write_buf
- ./lustre/tests/mpi/write_append_truncate.c:558 [error] - Memory leak: trunc_buf
- ./lustre/tests/mpi/write_disjoint.c:125 [error] - Resource leak: fd
- ./lustre/tests/mpi/write_disjoint.c:230 [error] - Memory leak: read_buf
- ./lustre/tests/multifstat.c:98 [error] - Resource leak: fd1
- ./lustre/tests/multifstat.c:98 [error] - Resource leak: fd2
- ./lustre/tests/multiop.c:342 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lustre/tests/multiop.c:424 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lustre/tests/opendevunlink.c:147 [error] - Resource leak: fddev1
- ./lustre/tests/opendevunlink.c:147 [error] - Resource leak: fddev2
- ./lustre/tests/opendirunlink.c:155 [error] - Resource leak: fddir1
- ./lustre/tests/opendirunlink.c:155 [error] - Resource leak: fddir2
- ./lustre/tests/openfilleddirunlink.c:112 [error] - Resource leak: fddir1
- ./lustre/tests/reads.c:292 [error] - Memory leak: buf
- ./lustre/tests/statone.c:94 [error] - Resource leak: fd
- ./lustre/tests/test_brw.c:267 [error] - Resource leak: fd
- ./lustre/tests/writemany.c:252 [error] - Buffer overrun possible for long cmd-line args
- ./lustre/utils/lfs.c:639 [error] - Memory leak: buf
- ./lustre/utils/mkfs_lustre.c:368 [error] - Resource leak: ret
- ./lustre/utils/mkfs_lustre.c:505 [error] - Resource leak: fp
- ./lustre/utils/mkfs_lustre.c:505 [error] - Resource leak: fd
- ./lustre/utils/mkfs_lustre.c:876 [error] - Resource leak: filep
- ./lustre/utils/mount_lustre.c:573 [error] - Memory leak: source
- ./lustre/utils/obd.c:2980 [error] - Memory leak: array
- ./lustre/utils/obdiolib.c:207 [error] - Data is allocated but not initialized: space
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:16:51 +0000, based on results by cppcheck 1.46