buglwIP - A Lightweight TCP/IP stack - Bugs: bug #35536, SNMP: error too big response is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35536: SNMP: error too big response is malformed

Submitter:  Stephane Lesage <slesage>
Submitted:  Wed 15 Feb 2012 09:07:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Thu 16 Feb 2012 07:04:31 AM UTC, comment #1: 

Fixed, thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 15 Feb 2012 09:07:19 PM UTC, original submission:  


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.

Stephane Lesage <slesage>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by slesage (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-16 goldsimon Planned Release 1.4.1
    2012-02-16 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2012-02-15 slesage Attached File- Added 0001-Fix-SNMP-response-for-error-too-big.patch, #25068

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code