summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-14 00:36:48 +0000
committerngie <ngie@FreeBSD.org>2017-01-14 00:36:48 +0000
commitdfa178933985421441dfaa42269df7834f21aece (patch)
tree9a4c7a840400f21364fb248aca332e4575713008 /tools
parent824e97617534c97fee33711bc0684f138aa14e28 (diff)
downloadFreeBSD-src-dfa178933985421441dfaa42269df7834f21aece.zip
FreeBSD-src-dfa178933985421441dfaa42269df7834f21aece.tar.gz
MFC r311750,r311754,r311757:
r311750: Check result from smiGetFirstNode and smiGetNodeByOID This avoids a segfault with malformed or unanticipated files, like IPV6-TC.txt (a file containing just TEXTUAL-CONVENTIONS). Found with: gensnmpdef /usr/local/share/snmp/mibs/IPV6-TC.txt r311754: Use calloc instead of malloc + memset(.., 0, ..) r311757: Similar to r311750, check for the result from smiGetModule to avoid a segfault when dereferencing a NULL pointer later on. Choose to just check for the NULL pointer in the next for-loop for now to fix the issue with a minimal amount of code churn sys/queue.h use here would make more sense than using a static table
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud