cppcheck analysis of ltp_20091231+dfsg-1.dsc
- ./lib/self_exec.c:173 [error] - Memory leak: arg
- ./lib/system_specific_hugepages_info.c:45 [error] - Mismatching allocation and deallocation: f
- ./lib/system_specific_hugepages_info.c:68 [error] - Mismatching allocation and deallocation: f
- ./pan/ltp-pan.c:849 [error] - Resource leak: c_stdout
- ./pan/ltp-pan.c:1144 [error] - Memory leak: buf
- ./pan/ltp-pan.c:1137 [error] - Resource leak: fd
- ./pan/splitstr.c:104 [error] - Memory leak: arg_string
- ./pan/symbol.c:216 [error] - Memory leak: nkey
- ./pan/zoolib.c:466 [error] - Memory leak: zooname
- ./testcases/kdump/lib/lkdtm/lkdtm.c:264 [error] - Null pointer dereference
- ./testcases/kernel/containers/mqns/mqns_04.c:165 [error] - Resource leak: rc
- ./testcases/kernel/containers/netns/common.c:156 [error] - Memory leak: child
- ./testcases/kernel/containers/netns/common.c:151 [error] - Memory leak: child
- ./testcases/kernel/controllers/cgroup/getdelays.c:529 [error] - Memory leak: logfile
- ./testcases/kernel/controllers/cpuset/cpuset_lib/cpuinfo.c:232 [error] - Resource leak: fp
- ./testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_cpu_hog.c:317 [error] - Memory leak: childpids
- ./testcases/kernel/controllers/memcg/regression/memcg_test_1.c:59 [error] - Resource leak: fd
- ./testcases/kernel/device-drivers/acpi/LtpAcpiMain.c:150 [error] - Uninitialized variable: rc
- ./testcases/kernel/device-drivers/include/userBlockInclude.c:140 [error] - Uninitialized variable: rc
- ./testcases/kernel/device-drivers/nls/userBlockNLS.c:139 [error] - Uninitialized variable: rc
- ./testcases/kernel/device-drivers/pci/tpci/tpci.c:784 [error] - Uninitialized variable: value
- ./testcases/kernel/fs/dmapi/attr.c:4628 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:5452 [error] - Deallocating a deallocated pointer: fd
- ./testcases/kernel/fs/dmapi/attr.c:7938 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9491 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9532 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9573 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9614 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9655 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9696 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9756 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9834 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9875 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9916 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9957 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:9998 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10039 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10099 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10176 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10216 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10256 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10296 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10335 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10375 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/attr.c:10433 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/config.c:319 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/config.c:267 [error] - Uninitialized variable: fd
- ./testcases/kernel/fs/dmapi/event_sd.c:132 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:231 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:328 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:372 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:597 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:762 [error] - Resource leak: fd_f
- ./testcases/kernel/fs/dmapi/handle.c:762 [error] - Resource leak: fd_l
- ./testcases/kernel/fs/dmapi/handle.c:800 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:839 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:889 [error] - Resource leak: fd_f
- ./testcases/kernel/fs/dmapi/handle.c:889 [error] - Resource leak: fd_l
- ./testcases/kernel/fs/dmapi/handle.c:931 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1222 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1320 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1364 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1771 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1958 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2045 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2086 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2127 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2168 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2209 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2255 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2301 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2447 [error] - Resource leak: fd1
- ./testcases/kernel/fs/dmapi/handle.c:2447 [error] - Resource leak: fd2
- ./testcases/kernel/fs/dmapi/handle.c:2566 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2624 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2694 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2781 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2823 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2901 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2936 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2971 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3007 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3042 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3077 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3112 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3148 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3237 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3273 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3410 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3462 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3579 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3648 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3818 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3907 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:4143 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:4326 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:4994 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:5075 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:5142 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:5224 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:5673 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:1917 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:2004 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3358 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3543 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/handle.c:3762 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/hole.c:99 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:178 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1237 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1329 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1421 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1513 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1605 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/invis.c:1697 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mmap.c:126 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:132 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:169 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:206 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:243 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:297 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:334 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:370 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:423 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:460 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/mount.c:515 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/pmr_post.c:127 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/pmr_pre.c:122 [error] - Resource leak: fd
- ./testcases/kernel/fs/dmapi/pmr_pre.c:577 [error] - Resource leak: fd
- ./testcases/kernel/fs/doio/doio.c:1201 [error] - Memory leak: aio_strat
- ./testcases/kernel/fs/doio/doio.c:1885 [error] - Memory leak: aio_strat
- ./testcases/kernel/fs/doio/doio.c:2407 [error] - Memory leak: status
- ./testcases/kernel/fs/doio/doio.c:2407 [error] - Memory leak: status.aioid
- ./testcases/kernel/fs/doio/iogen.c:1211 [error] - Resource leak: fd
- ./testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c:481 [error] - Common realloc mistake: "mnt_type" nulled but not freed upon failure
- ./testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c:83 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/fs/fsstress/fsstress.c:334 [error] - Common realloc mistake: "ilist" nulled but not freed upon failure
- ./testcases/kernel/fs/inode/inode02.c:259 [error] - Array 'slash[1]' index 1 out of bounds
- ./testcases/kernel/fs/mongo/mongo_compare.c:72 [error] - Buffer overrun possible for long cmd-line args
- ./testcases/kernel/fs/mongo/mongo_read.c:50 [error] - Resource leak: fd
- ./testcases/kernel/fs/mongo/mongo_slinks.c:92 [error] - Common realloc mistake: "buffer" nulled but not freed upon failure
- ./testcases/kernel/fs/openfile/openfile.c:117 [error] - Undefined behaviour: msg is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/fs/openfile/openfile.c:118 [error] - Undefined behaviour: msg is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/fs/openfile/openfile.c:124 [error] - Undefined behaviour: msg is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/fs/openfile/openfile.c:125 [error] - Undefined behaviour: msg is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/fs/proc/proc01.c:363 [error] - Resource leak: fd
- ./testcases/kernel/fs/scsi/ltpfs/main.c:534 [error] - Resource leak: fileHandle
- ./testcases/kernel/fs/scsi/ltpfs/main.c:561 [error] - Resource leak: fileHandle2
- ./testcases/kernel/fs/scsi/ltpfs/main.c:448 [error] - Uninitialized variable: rc
- ./testcases/kernel/fs/scsi/ltpscsi/scsimain.c:1567 [error] - Memory leak: de_entry
- ./testcases/kernel/fs/scsi/ltpscsi/scsimain.c:1521 [error] - Resource leak: sdir
- ./testcases/kernel/fs/scsi/ltpscsi/scsimain.c:1613 [error] - Resource leak: sdir
- ./testcases/kernel/fs/scsi/ltpscsi/scsimain.c:1543 [error] - Dangerous usage of 'devname' (strncpy doesn't always 0-terminate it)
- ./testcases/kernel/fs/scsi/ltpscsi/scsimain.c:1660 [error] - Dangerous usage of 'di_root' (strncpy doesn't always 0-terminate it)
- ./testcases/kernel/fs/stream/stream01.c:81 [error] - Resource leak: stream
- ./testcases/kernel/fs/stream/stream04.c:130 [error] - Memory leak: inbuf
- ./testcases/kernel/io/aio/aio02/aio_tio.c:104 [error] - Resource leak: fd
- ./testcases/kernel/io/direct_io/diotest1.c:198 [error] - Deallocating a deallocated pointer: fd1
- ./testcases/kernel/io/direct_io/diotest1.c:199 [error] - Deallocating a deallocated pointer: fd2
- ./testcases/kernel/io/direct_io/diotest4.c:598 [error] - Resource leak: newfd
- ./testcases/kernel/io/disktest/dump.c:154 [error] - Memory leak: ibuff
- ./testcases/kernel/io/disktest/dump.c:154 [error] - Memory leak: obuff
- ./testcases/kernel/io/disktest/dump.c:180 [error] - Memory leak: buff
- ./testcases/kernel/io/disktest/main.c:426 [error] - Memory leak: aFilespec
- ./testcases/kernel/io/ltp-aiodio/aiodio_append.c:86 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/aiodio_sparse.c:130 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/dio_append.c:93 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/dio_append.c:113 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/dio_sparse.c:126 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/dio_truncate.c:116 [error] - Resource leak: fd
- ./testcases/kernel/io/ltp-aiodio/read_checkzero.c:91 [error] - Resource leak: fd
- ./testcases/kernel/ipc/ipc_stress/shmem_test_04.c:313 [error] - Resource leak: fd
- ./testcases/kernel/mem/hugetlb/lib/libipc.c:175 [error] - Memory leak: ent
- ./testcases/kernel/mem/mem/mem02.c:164 [error] - Deallocating a deallocated pointer: pm1
- ./testcases/kernel/mem/mmapstress/mmapstress01.c:698 [error] - Memory leak: readbuf
- ./testcases/kernel/mem/mmapstress/mmapstress01.c:698 [error] - Resource leak: fd
- ./testcases/kernel/mem/mmapstress/mmapstress10.c:849 [error] - Memory leak: readbuf
- ./testcases/kernel/mem/mmapstress/mmapstress10.c:849 [error] - Resource leak: fd
- ./testcases/kernel/mem/mtest05/mmstress.c:508 [error] - Memory leak: th_status
- ./testcases/kernel/mem/mtest06/mmap2.c:133 [error] - Resource leak: fd
- ./testcases/kernel/mem/mtest06/mmap3.c:133 [error] - Resource leak: fd
- ./testcases/kernel/mem/vmtests/data_space.c:377 [error] - Memory leak: bits
- ./testcases/kernel/pty/pty01.c:132 [error] - Resource leak: slavefd
- ./testcases/kernel/pty/pty01.c:307 [error] - Resource leak: masterfd
- ./testcases/kernel/sched/tool/time-schedule.c:495 [error] - Resource leak: dp
- ./testcases/kernel/sched/tool/trace_sched.c:166 [error] - Resource leak: fd
- ./testcases/kernel/security/smack/smack_set_socket_labels.c:46 [error] - Buffer overrun possible for long cmd-line args
- ./testcases/kernel/syscalls/chdir/chdir01.c:139 [error] - Resource leak: ddir
- ./testcases/kernel/syscalls/chroot/chroot03.c:196 [error] - Undefined behaviour: good_dir is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/utils/common_j_h.c:315 [error] - Resource leak: fd
- ./testcases/kernel/syscalls/utils/common_j_h.c:336 [error] - Resource leak: fd
- ./testcases/kernel/syscalls/creat/creat04.c:218 [error] - Undefined behaviour: good_dir is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/creat/creat07.c:231 [error] - Memory leak: path
- ./testcases/kernel/syscalls/creat/creat08.c:264 [error] - Resource leak: ret
- ./testcases/kernel/syscalls/execve/execve04.c:268 [error] - Memory leak: path
- ./testcases/kernel/syscalls/fcntl/fcntl12.c:117 [error] - Resource leak: fd
- ./testcases/kernel/syscalls/getdents/getdents04.c:108 [error] - Memory leak: sbuf
- ./testcases/kernel/syscalls/ioctl/ioctl02.c:420 [error] - Resource leak: cfd
- ./testcases/kernel/syscalls/ipc/lib/libipc.c:164 [error] - Memory leak: ent
- ./testcases/kernel/syscalls/mount/mount03.c:519 [error] - Undefined behaviour: Path_name is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/open/open06.c:119 [error] - Undefined behaviour: fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/open/open10.c:289 [error] - Resource leak: ret
- ./testcases/kernel/syscalls/read/read02.c:166 [error] - Undefined behaviour: fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/read/read03.c:126 [error] - Undefined behaviour: fifo is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/readdir/readdir01.c:213 [error] - Resource leak: test_dir
- ./testcases/kernel/syscalls/rmdir/rmdir05.c:427 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./testcases/kernel/syscalls/rmdir/rmdir05.c:427 [error] - Invalid number of character ({) when these macros are defined: 'CRAY'.
- ./testcases/kernel/syscalls/rmdir/rmdir05.c:427 [error] - Invalid number of character ({) when these macros are defined: 'UCLINUX'.
- ./testcases/kernel/syscalls/splice/splice01.c:238 [error] - Resource leak: fd_out
- ./testcases/kernel/syscalls/statfs/statfs02.c:179 [error] - Undefined behaviour: fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/statfs/statfs02.c:185 [error] - Undefined behaviour: good_dir is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/statfs/statfs03.c:142 [error] - Undefined behaviour: fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/kernel/syscalls/swapoff/swapoff02.c:234 [error] - Resource leak: fd
- ./testcases/kernel/syscalls/tee/tee01.c:271 [error] - Resource leak: fd_out
- ./testcases/kernel/syscalls/vmsplice/vmsplice01.c:255 [error] - Resource leak: fd_out
- ./testcases/kernel/syscalls/waitid/waitid01.c:161 [error] - Division by zero
- ./testcases/kernel/syscalls/write/write04.c:241 [error] - Undefined behaviour: fifo is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/mce-test/tsrc/ttable.c:206 [error] - Memory leak: p
- ./testcases/misc/math/float/main.c:286 [error] - Memory leak: bin_path
- ./testcases/network/lib6/runcc.c:80 [error] - Resource leak: fd
- ./testcases/network/multicast/mc_member/member.c:144 [error] - Resource leak: fd
- ./testcases/network/multicast/mc_member/member.c:176 [error] - Resource leak: fd
- ./testcases/network/nfs/nfs01/open_files.c:114 [error] - Resource leak: dirp
- ./testcases/network/nfs/nfs_fsstress/fsstress.c:334 [error] - Common realloc mistake: "ilist" nulled but not freed upon failure
- ./testcases/network/nfs/nfsstress/make_tree.c:278 [error] - Memory leak: dirname
- ./testcases/network/nfs/nfsstress/make_tree.c:290 [error] - Memory leak: command
- ./testcases/network/nfs/nfsstress/make_tree.c:380 [error] - Memory leak: dirname
- ./testcases/network/nfs/nfsstress/make_tree.c:386 [error] - Memory leak: filename
- ./testcases/network/nfs/nfsstress/make_tree.c:579 [error] - Memory leak: dotc
- ./testcases/network/nfs/nfsstress/make_tree.c:396 [error] - Undefined behaviour: dirname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/network/nfs/nfsstress/make_tree.c:552 [error] - Undefined behaviour: dirname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/network/nfs/nfsstress/make_tree.c:568 [error] - Undefined behaviour: dirname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/network/nfs/nfsstress/make_tree.c:646 [error] - Undefined behaviour: dirname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./testcases/network/nfsv4/acl/acl1.c:66 [error] - Memory leak: fptr
- ./testcases/network/nfsv4/acl/acl1.c:291 [error] - Uninitialized variable: result
- ./testcases/network/nfsv4/acl/acl1.c:307 [error] - Uninitialized variable: result
- ./testcases/network/nfsv4/locks/locktests.c:720 [error] - Buffer access out-of-bounds
- ./testcases/network/nfsv4/locks/locktests.c:846 [error] - Buffer access out-of-bounds
- ./testcases/network/nfsv4/locks/locktests.c:866 [error] - Buffer access out-of-bounds
- ./testcases/network/nfsv4/locks/locktests.c:945 [error] - Buffer access out-of-bounds
- ./testcases/network/nfsv4/locks/locktests.c:950 [error] - Buffer access out-of-bounds
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/5-scalability.c:155 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/5-scalability.c:152 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/5-scalability.c:137 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/7-performance.c:119 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/4-mt.c:196 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/5-scalability.c:252 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/8-complex.c:234 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/4-mt.c:192 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/5-scalability.c:246 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/8-complex.c:234 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/4-mt.c:187 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/5-scalability.c:235 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/8-complex.c:225 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/4-mt.c:156 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/4-mt.c:162 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/4-mt.c:176 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/5-scalability.c:224 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/7-performance.c:118 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/8-complex.c:212 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/4-mt.c:154 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/5-scalability.c:204 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/4-mt.c:158 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/5-scalability.c:204 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/4-mt.c:156 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/5-scalability.c:198 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/8-complex.c:188 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_reg/4-mt.c:149 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/4-mt.c:168 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/5-scalability.c:215 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/7-performance.c:120 [error] - Memory leak: resultTbl
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/8-complex.c:201 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_6/tirpc_svc_6.c:112 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_8/tirpc_svc_8.c:112 [error] - Memory leak: pThreadArray
- ./testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_9/tirpc_svc_9.c:127 [error] - Memory leak: pThreadArray
- ./testcases/network/sctp/testlib/sctputil.c:415 [error] - Memory leak: found
- ./testcases/network/sctp/testlib/sctputil.h:137 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:149 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:157 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:165 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:173 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:181 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:189 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:198 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:208 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:218 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:226 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:234 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:242 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:252 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:262 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:270 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:284 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:295 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:306 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.h:314 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:187 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:195 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:201 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:208 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:239 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:247 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:251 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:259 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:263 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:266 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:313 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:358 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:376 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:382 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:399 [error] - Null pointer dereference
- ./testcases/network/sctp/testlib/sctputil.c:411 [error] - Null pointer dereference
- ./testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c:101 [error] - Resource leak: fd
- ./testcases/open_posix_testsuite/conformance/interfaces/mlock/10-1.c:59 [error] - Memory leak: ptr
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c:89 [error] - Resource leak: fd
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/12-1.c:120 [error] - Resource leak: fd2
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/27-1.c:104 [error] - Memory leak: data
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/6-1.c:147 [error] - Resource leak: fd
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/6-2.c:162 [error] - Resource leak: fd
- ./testcases/open_posix_testsuite/conformance/interfaces/mmap/6-3.c:151 [error] - Resource leak: fd
- ./testcases/open_posix_testsuite/conformance/interfaces/munlock/11-1.c:56 [error] - Memory leak: ptr
- ./testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c:178 [error] - Memory leak: child_pid
- ./testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c:209 [error] - Memory leak: child_pid
- ./testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c:209 [error] - Memory leak: child_pid
- ./testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c:214 [error] - Memory leak: child_pid
- ./testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c:266 [error] - Memory leak: child_pid
- ./testcases/open_posix_testsuite/conformance/interfaces/shm_open/8-1.c:61 [error] - Resource leak: fd1
- ./testcases/open_posix_testsuite/functional/semaphores/sem_conpro.c:109 [error] - Memory leak: buf
- ./testcases/open_posix_testsuite/functional/semaphores/sem_conpro.c:114 [error] - Memory leak: buf
- ./testcases/pounder21/src/cpufreq/cpufreq.c:57 [error] - Resource leak: fp
- ./testcases/pounder21/src/cpufreq/cpufreq.c:180 [error] - Memory leak: frequencies
- ./testcases/pounder21/src/ramsnake/snake.c:97 [error] - Resource leak: fp
- ./testcases/pounder21/src/randacoords/coords.c:40 [error] - Resource leak: fp
- ./testcases/pounder21/src/randasyscall/randasys.c:50 [error] - Resource leak: fp
- ./testcases/pounder21/src/xbonkers/xbonkers.c:120 [error] - Resource leak: fp
- ./testcases/realtime/func/rt-migrate/rt-migrate.c:526 [error] - Memory leak: threads
- ./testcases/realtime/func/rt-migrate/rt-migrate.c:367 [error] - Uninitialized variable: last
- ./tools/rand_lines.c:467 [error] - Memory leak: buffer
- ./tools/top-LTP/proc/readproc.c:263 [error] - Resource leak: fd
- ./tools/top-LTP/proc/readproc.c:332 [error] - Resource leak: fd
- ./tools/top-LTP/proc/sig.c:217 [error] - Unusual pointer arithmetic
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:49 +0000, based on results by cppcheck 1.46