lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #51577] snmp/asn1: 64 bit encoding/decoding seems brok


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #51577] snmp/asn1: 64 bit encoding/decoding seems broken for big endian
Date: Wed, 26 Jul 2017 02:31:30 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?51577>

                 Summary: snmp/asn1: 64 bit encoding/decoding seems broken for
big endian
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Wed 26 Jul 2017 06:31:29 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

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).




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?51577>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]