buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64847, Error in sendtrap v2c

 
 

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

bug #64847: Error in sendtrap v2c

Submitter:  Andrew <andi>
Submitted:  Fri 03 Nov 2023 08:11:53 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.2.0

Fri 01 Nov 2024 09:59:37 AM UTC, comment #1: 

Duplicate and solution for bug #64685

Jan Breuer <jan_breuer>
Fri 03 Nov 2023 08:11:53 AM UTC, original submission:  

There are bug in snmp_traps.c
Line 394-395

Now:
  if (trap_msg->snmp_version == SNMP_VERSION_2c) {
      struct snmp_obj_id snmp_trap_oid =  { 0 };  /* used for...
Need:
  struct snmp_obj_id snmp_trap_oid =  { 0 };  /* used for ...
  if (trap_msg->snmp_version == SNMP_VERSION_2c) {

An OID is created, a pointer is written to it in varbind[1].value.
The memory will be cleared when we leave the curly braces, and the snmp_varbind_len structure will be located in the same place. When calculating the length of varbind[1].value is corrupted.
(In         snmp_trap_varbind_sum
and snmp_asn1_enc_length_cnt)

Andrew <andi>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yarrick (Updated the item)
  • -email is unavailable- added by jan_breuer (Posted a comment)
  • -email is unavailable- added by andi (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-29 yarrick StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code