cppcheck analysis of net-snmp_5.4.3~dfsg-2.dsc
- ./agent/helpers/table_data.c:512 [error] - Possible null pointer dereference: row - otherwise it is redundant to check if row is null at line 522
- ./agent/helpers/table_data.c:513 [error] - Possible null pointer dereference: row - otherwise it is redundant to check if row is null at line 522
- ./agent/mibgroup/agent/extend.c:1281 [error] - Possible null pointer dereference: extension - otherwise it is redundant to check if extension is null at line 1283
- ./agent/mibgroup/disman/expr/expExpression.c:307 [error] - Possible null pointer dereference: entry - otherwise it is redundant to check if entry is null at line 308
- ./agent/mibgroup/disman/expression/expValueTable.c:632 [error] - Memory leak: result
- ./agent/mibgroup/disman/expression/expValueTable.c:632 [error] - Memory leak: temp
- ./agent/mibgroup/disman/ping/pingCtlTable.c:1880 [error] - Memory leak: packet
- ./agent/mibgroup/disman/ping/pingCtlTable.c:1961 [error] - Memory leak: ai
- ./agent/mibgroup/disman/ping/pingCtlTable.c:1242 [error] - Uninitialized variable: sendbuf
- ./agent/mibgroup/disman/traceroute/traceRouteCtlTable.c:5059 [error] - Memory leak: sendbuff
- ./agent/mibgroup/disman/traceroute/traceRouteCtlTable.c:6114 [error] - Resource leak: f
- ./agent/mibgroup/hardware/cpu/cpu_linux.c:215 [error] - Common realloc mistake: "vmbuff" nulled but not freed upon failure
- ./agent/mibgroup/hardware/memory/memory_linux.c:49 [error] - Resource leak: statfd
- ./agent/mibgroup/if-mib/data_access/interface_linux.c:479 [error] - Resource leak: devin
- ./agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c:375 [error] - Memory leak: alias_list
- ./agent/mibgroup/mibII/mta_sendmail.c:1012 [error] - Resource leak: sendmailcf_fp
- ./agent/mibgroup/mibII/vacm_vars.c:1267 [error] - Uninitialized variable: newGroupName
- ./agent/mibgroup/mibII/vacm_vars.c:1268 [error] - Uninitialized variable: newContextPrefix
- ./agent/mibgroup/sctp-mib/sctpScalars_linux.c:38 [error] - Resource leak: f
- ./agent/mibgroup/sctp-mib/sctpScalars_linux.c:144 [error] - Resource leak: f
- ./agent/mibgroup/smux/smux.c:151 [error] - Memory leak: aptr
- ./agent/mibgroup/snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_get.c:150 [error] - Possible null pointer dereference: user - otherwise it is redundant to check if user is null at line 156
- ./agent/mibgroup/snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_get.c:151 [error] - Possible null pointer dereference: user - otherwise it is redundant to check if user is null at line 156
- ./agent/mibgroup/ucd-snmp/disk.c:382 [error] - Common realloc mistake: "disks" nulled but not freed upon failure
- ./agent/mibgroup/ucd-snmp/disk.c:258 [error] - Common realloc mistake: "disks" nulled but not freed upon failure
- ./agent/mibgroup/ucd-snmp/disk.c:322 [error] - Common realloc mistake: "disks" nulled but not freed upon failure
- ./agent/mibgroup/ucd-snmp/diskio.c:771 [error] - Resource leak: parts
- ./agent/mibgroup/ucd-snmp/lmSensors.c:377 [error] - Uninitialized variable: res
- ./agent/mibgroup/ucd-snmp/proxy.c:157 [error] - Memory leak: newp
- ./agent/mibgroup/ucd-snmp/vmstat_linux.c:236 [error] - Common realloc mistake: "vmbuff" nulled but not freed upon failure
- ./apps/snmptable.c:453 [error] - Memory leak: index_fmt
- ./apps/snmptrapd_log.c:1101 [error] - Memory leak: temp_buf
- ./snmplib/asn1.c:814 [error] - Data is allocated but not initialized: buf
- ./snmplib/asn1.c:888 [error] - Data is allocated but not initialized: buf
- ./snmplib/asn1.c:2844 [error] - Data is allocated but not initialized: buf
- ./snmplib/asn1.c:3192 [error] - Data is allocated but not initialized: buf
- ./snmplib/inet_ntop.c:124 [error] - Uninitialized variable: tmp
- ./snmplib/parse.c:2368 [error] - Memory leak: descr
- ./snmplib/snmp_client.c:525 [error] - Memory leak: newpdu
- ./snmplib/snmp_client.c:570 [error] - Memory leak: newpdu
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sat, 08 Jan 2011 06:58:08 +0000, based on results by cppcheck 1.46