cppcheck analysis of samhain_2.6.2-1.dsc
- ./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_fill.c:279 [error] - Memory leak: inbuf
- ./src/exepack_fill.c:279 [error] - Memory leak: outbuf
- ./src/exepack_mkdata.c:178 [error] - Resource leak: fd_out
- ./src/exepack_mkdata.c:178 [error] - Memory leak: inbuf
- ./src/exepack_mkdata.c:178 [error] - Memory leak: outbuf
- ./src/kern_head.c:235 [error] - Resource leak: fp
- ./src/kern_head.c:282 [error] - Resource leak: fp
- ./src/samhain.c:1113 [possible error] - Memory leak: fullpath
- ./src/samhain.c:157 [error] - Memory leak: ptr
- ./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 [possible error] - Memory leak: oldpwd
- ./src/samhain_stealth.c:375 [possible error] - Resource leak: fd
- ./src/samhain_stealth.c:395 [possible error] - Resource leak: infil
- ./src/sh_mail.c:786 [error] - Possible null pointer dereference: ma_address
- ./src/sh_portcheck.c:1432 [error] - Dangerous usage of 'buf' (strncpy doesn't always 0-terminate it)
- ./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 Thu, 16 Dec 2010 06:02:01 +0000, based on results by cppcheck 1.41-modif