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

Submitted by:  Stephane Lesage <slesage>
Submitted on:  Wed 15 Feb 2012 09:07:19 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Feb 2012 07:04:31 AM UTCgoldsimonPlanned Release=>1.4.1
    Thu 16 Feb 2012 07:04:30 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Wed 15 Feb 2012 09:07:19 PM UTCslesageAttached File-=>Added 0001-Fix-SNMP-response-for-error-too-big.patch, #25068

    Back to the top


    Powered by Savane 3.1-cleanup1