buglwIP - A Lightweight TCP/IP stack - Bugs: bug #51577, snmp/asn1: 64 bit...

 
 

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

bug #51577: snmp/asn1: 64 bit encoding/decoding seems broken for big endian

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Wed 26 Jul 2017 06:31:29 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Wed 26 Jul 2017 10:53:35 AM UTC, comment #1:

Fixed by rewriting associated routines

Dirk Ziegelmeier <dziegel>
Project Member
Wed 26 Jul 2017 06:31:29 AM UTC, original submission:

snmp_asn1_dec_u64t() and snmp_asn1_enc_u64t() interpret the u64_t value as u32_t-array of two elements where [0] is the lower part. For little endian this is OK, but not for u64_t.

However, since COUNTER64 is not used yet, this currently can't really be tested.

Poposed fix: convert these functions to use an u64_t pointer and implement COUNTER64 in UDP and TCP mib2 to return the u32_t part (that way, the values for the u32_t counter and the u64_t counter can be checked for equality in the SNMP client).

Simon Goldschmidt <goldsimon>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dziegel (Posted a comment)
  • -unavailable- added by goldsimon (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 26 Jul 2017 10:53:35 AM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1