cppcheck analysis of samhain_2.6.2-1.dsc
- ./src/cutest_sh_unix.c:33 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/cutest_sh_unix.c:56 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/cutest_sh_unix.c:83 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/cutest_sh_unix.c:115 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/cutest_sh_unix.c:144 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/depend-gen.c:140 [error] - Buffer access out-of-bounds: tmpname
- ./src/depend-gen.c:124 [error] - Resource leak: fout
- ./src/encode.c:102 [error] - Resource leak: inf
- ./src/exepack_fill.c:222 [error] - Memory leak: data
- ./src/exepack_mkdata.c:178 [error] - Resource leak: fd_out
- ./src/kern_head.c:235 [error] - Resource leak: fp
- ./src/kern_head.c:282 [error] - Resource leak: fp
- ./src/samhain.c:1113 [error] - Memory leak: fullpath
- ./src/samhain_setpwd.c:338 [error] - Memory leak: newn
- ./src/samhain_setpwd.c:344 [error] - Resource leak: oldf
- ./src/samhain_setpwd.c:338 [error] - Resource leak: newf
- ./src/samhain_setpwd.c:276 [error] - Memory leak: buf
- ./src/samhain_setpwd.c:276 [error] - Memory leak: newpwd
- ./src/samhain_setpwd.c:276 [error] - Memory leak: oldpwd
- ./src/samhain_stealth.c:375 [error] - Resource leak: fd
- ./src/samhain_stealth.c:395 [error] - Resource leak: infil
- ./src/sh_hash.c:2214 [error] - Uninitialized variable: i2h
- ./src/sh_html.c:313 [error] - Common realloc mistake: "entry_orig" nulled but not freed upon failure
- ./src/sh_mail.c:786 [error] - Possible null pointer dereference: ma_address
- ./src/sh_mem.c:277 [error] - Data is allocated but not initialized: the_realAddress
- ./src/sh_portcheck.c:1432 [error] - Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it)
- ./src/sh_utils.c:1202 [error] - Common realloc mistake: "image" nulled but not freed upon failure
- ./src/trustfile.c:502 [error] - Deallocating a deallocated pointer: buffer
- ./src/trustfile.c:503 [error] - Deallocating a deallocated pointer: pbuffer
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:18:30 +0000, based on results by cppcheck 1.46