buglwIP - A Lightweight TCP/IP stack - Bugs: bug #20253, "p->payload == iphdr"...

 
 

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

bug #20253: "p->payload == iphdr" assertion in udp.c

Submitter:  Petr Cernin <cerninp>
Submitted:  Mon 25 Jun 2007 03:42:45 PM UTC
   
 
Category:  UDP Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  None

Mon 25 Jun 2007 05:30:35 PM UTC, comment #2: 

Yep, thanks for reporting this. I've fixed it.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 25 Jun 2007 04:04:19 PM UTC, comment #1: 

This looks like a bug, and a sensible fix.

Kieran Mansley <kieranm>
Group Member
Mon 25 Jun 2007 03:42:45 PM UTC, original submission:  

This assertion appears every time when udp message is received and destination port is unreachable. There is a little bug in udp.c:

line 259 (udp.c):
  pbuf_header(p, (IPH_HL(iphdr) * 4));
  LWIP_ASSERT("p->payload == iphdr", (p->payload == iphdr));

there should be:
  pbuf_header(p, (IPH_HL(iphdr) * 4) + UDP_HLEN);
  LWIP_ASSERT("p->payload == iphdr", (p->payload == iphdr));

Petr Cernin <cerninp>

 

(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 goldsimon (Posted a comment)
  • -email is unavailable- added by kieranm (Posted a comment)
  • -email is unavailable- added by cerninp (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-25 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code