cppcheck analysis of rsyslog_4.6.4-2.dsc
- ./plugins/imfile/imfile.c:396 [error] - syntax error
- ./plugins/imklog/ksym.c:520 [error] - Common realloc mistake: "sym_array" nulled but not freed upon failure
- ./plugins/imuxsock/imuxsock.c:308 [error] - syntax error
- ./plugins/omoracle/omoracle.c:311 [error] - syntax error
- ./runtime/conf.c:502 [error] - Resource leak: cf
- ./runtime/ctok.c:302 [error] - Uninitialized variable: pstrVal
- ./runtime/debug.c:169 [error] - Memory leak: pThrd
- ./runtime/debug.c:477 [error] - Memory leak: pLog
- ./runtime/debug.c:525 [error] - Memory leak: pLog
- ./runtime/debug.c:742 [error] - Memory leak: pThrd
- ./runtime/debug.c:1080 [error] - Memory leak: pThrd
- ./runtime/debug.c:1105 [error] - Memory leak: pThrd
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'AI_ADDRCONFIG'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'FNM_CASEFOLD'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STRUCT_SOCKADDR_SA_LEN'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'IPV6_V6ONLY'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/net.c:1623 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'RTINST'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: 'UT_NAMESIZE'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: '__GNUC__'.
- ./runtime/netstrms.c:326 [error] - Invalid number of character ({) when these macros are defined: '__hpux'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STRUCT_SOCKADDR_SA_LEN'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD;_KERNEL'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'RTINST'.
- ./runtime/nsd_gtls.c:1746 [error] - Invalid number of character ({) when these macros are defined: 'UT_NAMESIZE'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'BSD'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STRUCT_SOCKADDR_SA_LEN'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'IPV6_V6ONLY'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD'.
- ./runtime/nsd_ptcp.c:842 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD;_KERNEL'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'RTINST'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: 'UT_NAMESIZE'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: '__GNUC__'.
- ./runtime/regexp.c:100 [error] - Invalid number of character ({) when these macros are defined: '__hpux'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_FCNTL_H'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STRUCT_SOCKADDR_SA_LEN'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'OS_BSD;_KERNEL'.
- ./runtime/strmsrv.c:963 [error] - Invalid number of character ({) when these macros are defined: 'RTINST'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYSLOG_H'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'LOG_FAC'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'LOG_MAKEPRI'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'LOG_PRI'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'NDEBUG'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'RTINST'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: 'UT_NAMESIZE'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: '__GNUC__'.
- ./runtime/zlibw.c:123 [error] - Invalid number of character ({) when these macros are defined: '__hpux'.
- ./template.c:446 [error] - Memory leak: pTpe
- ./template.c:829 [error] - Memory leak: pTpe
- ./template.c:879 [error] - Memory leak: pTpl
- ./tests/randomgen.c:98 [error] - Resource leak: rfp
- ./tools/omusrmsg.c:123 [error] - syntax error
- ./tools/syslogd.c:444 [error] - Uninitialized variable: count
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 14:58:09 +0000, based on results by cppcheck 1.46