cppcheck analysis of lustre_1.8.5+dfsg-2.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'.
- ./lnet/libcfs/linux/linux-proc.c:514 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./lnet/libcfs/linux/linux-proc.c:514 [error] - Invalid number of character ({) when these macros are defined: 'AUTOCONF_INCLUDED'.
- ./lnet/libcfs/linux/linux-proc.c:514 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSCTL_UNNUMBERED'.
- ./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:747 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:812 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:1055 [error] - Resource leak: fd
- ./lustre/liblustre/tests/sanity.c:1101 [error] - Resource leak: fd
- ./lustre/llite/file.c:1214 [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:466 [error] - Possible null pointer dereference: lsd - otherwise it is redundant to check if lsd is null at line 471
- ./lustre/obdfilter/filter.c:800 [error] - Possible null pointer dereference: fsd - otherwise it is redundant to check if fsd is null at line 805
- ./lustre/osc/osc_request.c:3853 [error] - Possible null pointer dereference: lumk - otherwise it is redundant to check if lumk is null at line 3860
- ./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:126 [error] - Resource leak: fd
- ./lustre/tests/mpi/write_disjoint.c:243 [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:630 [error] - Memory leak: buf
- ./lustre/utils/mkfs_lustre.c:369 [error] - Resource leak: ret
- ./lustre/utils/mkfs_lustre.c:506 [error] - Resource leak: fp
- ./lustre/utils/mkfs_lustre.c:506 [error] - Resource leak: fd
- ./lustre/utils/mkfs_lustre.c:888 [error] - Resource leak: filep
- ./lustre/utils/mount_lustre.c:561 [error] - Memory leak: source
- ./lustre/utils/obd.c:2979 [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 Fri, 25 Mar 2011 06:58:10 +0000, based on results by cppcheck 1.46