cppcheck analysis of courier_0.65.0-3.dsc
- ./courier/cmlmcmdmisc.C:93 [error] - Resource leak: dirp
- ./courier/filters/courierfilter.c:100 [error] - Memory leak: s
- ./courier/module.esmtp/courieresmtpd.c:345 [error] - Null pointer dereference
- ./courier/module.esmtp/esmtpclient.c:1814 [error] - Buffer access out-of-bounds
- ./courier/module.esmtp/esmtpclient.c:1833 [error] - Buffer access out-of-bounds
- ./courier/module.esmtp/esmtpclient.c:1925 [error] - Buffer access out-of-bounds
- ./courier/module.fax/courierfax.c:315 [error] - Allocation with open, if doesn't release it.
- ./courier/module.fax/courierfax.c:409 [error] - Allocation with open, if doesn't release it.
- ./courier/module.fax/faxconvert.c:510 [error] - Memory leak: buf
- ./courier/module.local/localmail.c:526 [error] - Resource leak: f
- ./courier/submit2.C:769 [error] - Resource leak: fp
- ./gpglib/options.c:26 [error] - Memory leak: s
- ./gpglib/options.c:37 [error] - Memory leak: s
- ./gpglib/testgpg.c:120 [error] - Resource leak: f
- ./imap/imapd.c:3876 [error] - Memory leak: p
- ./imap/imapd.c:1807 [error] - Memory leak: p
- ./imap/imaplogin.c:489 [error] - Possible null pointer dereference: c
- ./imap/imaplogin.c:493 [error] - Possible null pointer dereference: c
- ./imap/pop3dserver.c:145 [error] - Resource leak: f
- ./imap/searchinfo.c:177 [error] - Memory leak: si
- ./imap/searchinfo.c:208 [error] - Memory leak: si
- ./imap/searchinfo.c:225 [error] - Memory leak: si
- ./imap/searchinfo.c:242 [error] - Memory leak: si
- ./imap/searchinfo.c:256 [error] - Memory leak: si
- ./imap/searchinfo.c:273 [error] - Memory leak: si
- ./imap/searchinfo.c:290 [error] - Memory leak: si
- ./imap/searchinfo.c:307 [error] - Memory leak: si
- ./imap/searchinfo.c:324 [error] - Memory leak: si
- ./imap/searchinfo.c:341 [error] - Memory leak: si
- ./imap/searchinfo.c:356 [error] - Memory leak: si
- ./imap/searchinfo.c:373 [error] - Memory leak: si
- ./imap/searchinfo.c:388 [error] - Memory leak: si
- ./imap/searchinfo.c:407 [error] - Memory leak: si
- ./imap/smap.c:462 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./ldapaddressbook/libldapsearch.c:259 [error] - Memory leak: kk
- ./liblock/lockdaemon.c:210 [error] - Resource leak: i
- ./liblock/lockdaemon.c:201 [error] - Allocation with open, if doesn't release it.
- ./maildir/autoresponse.c:174 [error] - Memory leak: p
- ./maildir/maildiraclt.c:502 [error] - Resource leak: fp
- ./maildir/maildirkeywords3.c:189 [error] - Memory leak: e.filename
- ./maildir/maildirnewshared2.c:155 [error] - Memory leak: c.hierarchy
- ./maildir/maildirpath.c:63 [error] - Memory leak: p
- ./maildir/maildirpath.c:127 [error] - Memory leak: p
- ./maildrop/maildir.C:224 [error] - Mismatching allocation and deallocation: n
- ./maildrop/maildir.C:228 [error] - Mismatching allocation and deallocation: n
- ./makedat/makedatprog.c:127 [error] - Resource leak: i
- ./md5/md5_hash.c:30 [error] - Array 'md5buf[16]' index 16 out of bounds
- ./md5/md5_hash.c:31 [error] - Array 'md5buf[16]' index 17 out of bounds
- ./pcp/pcpdir.c:256 [error] - Memory leak: p
- ./pcp/pcpdir.c:273 [error] - Memory leak: p
- ./pcp/pcpdir.c:1159 [error] - Resource leak: fp
- ./pcp/pcpdir.c:2106 [error] - Memory leak: id
- ./pcp/pcpnet.c:530 [error] - Resource leak: dirp
- ./rfc1035/rfc1035qptr.c:121 [error] - Possible null pointer dereference: reply - otherwise it is redundant to check if reply is null at line 132
- ./rfc2045/rfc2045.c:1184 [error] - Memory leak: s
- ./rfc2045/rfc2045decode.c:20 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./sha1/sha1_hash.c:30 [error] - Array 'sha1buf[20]' index 20 out of bounds
- ./sha1/sha256_hash.c:30 [error] - Array 'sha256buf[32]' index 32 out of bounds
- ./sha1/sha512_hash.c:29 [error] - Array 'sha512buf[64]' index 64 out of bounds
- ./sha1/sha512_hash.c:30 [error] - Array 'sha512buf[64]' index 65 out of bounds
- ./tcpd/libcouriergnutls.c:1599 [error] - Memory leak: ssl
- ./tcpd/tcpd.c:949 [error] - Memory leak: r
- ./tcpd/tcpd.c:1263 [error] - Memory leak: p
- ./tcpd/tlscache.c:425 [error] - Memory leak: buf
- ./unicode/utf7.c:184 [error] - Memory leak: buffer
- ./webmail/addressbook.c:160 [error] - Resource leak: fp
- ./webmail/auth.c:241 [error] - Memory leak: domain
- ./webmail/folder.c:3447 [error] - Common realloc mistake: "uc" nulled but not freed upon failure
- ./webmail/gpg.c:590 [error] - Resource leak: passfd
- ./webmail/msg2html.c:64 [error] - Memory leak: buf
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:13:13 +0000, based on results by cppcheck 1.46