freebsd-dev/contrib/bsnmp/lib
Enji Cooper 6c9b7542ef Prevent improper memory accesses after calling snmp_pdu_free and snmp_value_free
snmp_pdu_free: set pdu->nbindings to 0 to limit the damage that
could happen if a pdu was reused after calling the function, and
as both stack and heap allocation types are used in contrib/bsnmp
and usr.sbin/bsnmpd.

snmp_value_free: NULL out value->v.octetstring.octets after calling
free on it to prevent a double-free from occurring.

MFC after:      2 weeks
2016-12-29 00:20:03 +00:00
..
asn1.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
asn1.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
asn1.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmpagent.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmpclient.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmplib.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmp.c Prevent improper memory accesses after calling snmp_pdu_free and snmp_value_free 2016-12-29 00:20:03 +00:00
snmp.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpagent.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpagent.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpclient.c style(9): snmp_send_packet(..): fix whitespace 2016-12-28 04:56:15 +00:00
snmpclient.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpcrypto.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmppriv.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
support.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
support.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
tc.def Clean some 'svn:executable' properties in the tree. 2013-01-26 22:08:21 +00:00