FreeBSD Bugzilla – Attachment 222314 Details for
Bug 253393
net-mgmt/net-snmp: After upgrading net-snmp-5.7.3_20.1 to net-snmp-5.9_1.1, some snmp responses are not decoded correctly and discarded.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix incorrect length comparison
patch-snmplib-asn1.c (text/plain), 498 bytes, created by
Alexander
on 2021-02-10 03:38:49 UTC
(
hide
)
Description:
fix incorrect length comparison
Filename:
MIME Type:
Creator:
Alexander
Created:
2021-02-10 03:38:49 UTC
Size:
498 bytes
patch
obsolete
>--- snmplib/asn1.c.orig 2020-08-15 04:41:47.000000000 +0700 >+++ snmplib/asn1.c 2021-02-10 02:51:55.625498000 +0700 >@@ -348,7 +348,7 @@ > * long length; first byte is length of length (after masking high bit) > */ > len_len = (int) ((*pkt & ~0x80) + 1); >- if ((int) pkt_len <= len_len ) >+ if ((int) pkt_len < len_len ) > return NULL; /* still too short for length and data */ > > /* now we know we have enough data to parse length */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253393
: 222314