[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #35536] SNMP: error too big response is malformed
From: |
Stephane Lesage |
Subject: |
[lwip-devel] [bug #35536] SNMP: error too big response is malformed |
Date: |
Wed, 15 Feb 2012 21:07:20 +0000 |
User-agent: |
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) |
URL:
<http://savannah.nongnu.org/bugs/?35536>
Summary: SNMP: error too big response is malformed
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: slesage
Submitted on: mer. 15 févr. 2012 22:07:19 CET
Category: None
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: CVS Head
_______________________________________________________
Details:
I tested SNMP with various browsers, it seems to work globally fine, but my
firmwares crash on a "GET multiples variables".
After investigation, this comes from ASSERTs when
memp_malloc(MEMP_SNMP_VARBIND) or memp_malloc(MEMP_SNMP_VALUE) fails. These
asserts are not necessary because theses cases are handled and LWIP_DEBUG
messages are output.
After removing these asserts, Wireshark reports that the response is
malformed.
1. the error index must be 0 on error "too big", cf
http://tools.ietf.org/html/rfc1157
2. there are no variables bindings, while RFC states that the response must
return the same as the request
After fixing this, there's another error: the name of the correctly processed
variables are incorrect (could also happen on other errors)
The attached fixes all these issues.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mer. 15 févr. 2012 22:07:19 CET Name:
0001-Fix-SNMP-response-for-error-too-big.patch Size: 5 ko By: slesage
<http://savannah.nongnu.org/bugs/download.php?file_id=25068>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?35536>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #35536] SNMP: error too big response is malformed,
Stephane Lesage <=