cppcheck analysis of mtd-utils_20100706-1.dsc
- ./fectest.c:37 [error] - Buffer access out-of-bounds: srcs
- ./flash_erase.c:91 [error] - Memory leak: reginfo
- ./flash_eraseall.c:82 [error] - Resource leak: fd
- ./flash_info.c:54 [error] - Resource leak: Fd
- ./flash_lock.c:82 [error] - Resource leak: fd
- ./flash_otp_dump.c:34 [error] - Resource leak: fd
- ./flash_otp_info.c:33 [error] - Resource leak: fd
- ./flash_otp_lock.c:69 [error] - Resource leak: fd
- ./flash_otp_write.c:95 [error] - Resource leak: fd
- ./flash_unlock.c:73 [error] - Resource leak: fd
- ./jffs-dump.c:359 [error] - Resource leak: fs
- ./mkfs.ubifs/mkfs.ubifs.c:935 [error] - Memory leak: e
- ./mkfs.ubifs/mkfs.ubifs.c:1194 [error] - Memory leak: kname
- ./mkfs.ubifs/mkfs.ubifs.c:1267 [error] - Resource leak: fd
- ./mkfs.ubifs/mkfs.ubifs.c:1444 [error] - Resource leak: dir
- ./mkfs.ubifs/mkfs.ubifs.c:1732 [error] - Memory leak: idx
- ./nftl_format.c:63 [error] - Uninitialized variable: oobbuf
- ./tests/fs-tests/integrity/integck.c:1079 [error] - Resource leak: w_fd
- ./tests/fs-tests/lib/tests.c:571 [error] - Resource leak: fd
- ./tests/fs-tests/lib/tests.c:694 [error] - Resource leak: fd
- ./tests/fs-tests/lib/tests.c:719 [error] - Resource leak: fd
- ./tests/fs-tests/simple/perf.c:126 [error] - Resource leak: fd
- ./tests/fs-tests/stress/atoms/fwrite00.c:152 [error] - Resource leak: fd
- ./tests/fs-tests/stress/atoms/rndrm99.c:175 [error] - Resource leak: fd
- ./tests/fs-tests/stress/atoms/rndwrite00.c:142 [error] - Resource leak: fd
- ./tests/fs-tests/stress/atoms/stress_1.c:70 [error] - Resource leak: fd
- ./tests/fs-tests/stress/atoms/stress_3.c:78 [error] - Resource leak: fd
- ./tests/jittertest/JitterTest.c:466 [error] - Resource leak: fdSnapshot
- ./tests/jittertest/JitterTest.c:473 [error] - Resource leak: fdProfile
- ./tests/jittertest/JitterTest.c:508 [error] - Resource leak: fdProfile
- ./tests/jittertest/plotJittervsFill.c:305 [error] - Resource leak: fp
- ./tests/ubi-tests/volrefcnt.c:116 [error] - Resource leak: fd
- ./ubi-utils/old-utils/src/bootenv.c:954 [error] - Memory leak: res
- ./ubi-utils/old-utils/src/error.c:50 [error] - Resource leak: fp
- ./ubi-utils/old-utils/src/libpfiflash.c:940 [error] - Deallocating a deallocated pointer: mtd
- ./ubi-utils/old-utils/src/pfi2bin.c:492 [error] - Memory leak: res
- ./ubi-utils/old-utils/src/unubi_analyze.c:226 [error] - Memory leak: erase_counts
- ./ubi-utils/src/libubi.c:426 [error] - Resource leak: fd
- ./ubi-utils/src/libubi.c:903 [error] - Resource leak: fd
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Tue, 21 Dec 2010 04:58:26 +0000, based on results by cppcheck 1.46