Fix bsnmpd remote denial of service vulnerability. [SA-14:01] Fix ntpd distributed reflection Denial of Service vulnerability. [SA-14:02] Fix OpenSSL multiple vulnerabilities. [SA-14:03] Fix BIND remote denial of service vulnerability. [SA-14:04] Disable hardware RNGs by default. [EN-14:01] Fix incorrect coalescing of stack entry with mmap. [EN-14:02]
16 lines
599 B
Diff
16 lines
599 B
Diff
Index: contrib/bsnmp/lib/snmpagent.c
|
|
===================================================================
|
|
--- contrib/bsnmp/lib/snmpagent.c (revision 259661)
|
|
+++ contrib/bsnmp/lib/snmpagent.c (working copy)
|
|
@@ -488,6 +488,11 @@ snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf
|
|
for (cnt = 0; cnt < pdu->error_index; cnt++) {
|
|
eomib = 1;
|
|
for (i = non_rep; i < pdu->nbindings; i++) {
|
|
+
|
|
+ if (resp->nbindings == SNMP_MAX_BINDINGS)
|
|
+ /* PDU is full */
|
|
+ goto done;
|
|
+
|
|
if (cnt == 0)
|
|
result = do_getnext(&context, &pdu->bindings[i],
|
|
&resp->bindings[resp->nbindings], pdu);
|