buglwIP - A Lightweight TCP/IP stack - Bugs: bug #17500, UDP PCB remove error!

 
 

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

bug #17500: UDP PCB remove error!

Submitter:  None
Submitted:  Tue 22 Aug 2006 12:11:00 PM UTC
   
 
Category:  UDP Severity:  3 - Normal
Item Group:  Crash Error Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  None

Tue 29 Aug 2006 09:24:51 AM UTC, comment #1: 

Can't see the bug here. E.g. [a]->[b]->[c] where pcb points to [b] (the pcb to be removed) at the first iteration pcb2->next will also point to [b] thus equals pcb. pcb2->next (a.next) must be assigned pcb->next (b.next). pcb2->next->next equals pcb->next so this is pointless.

Christiaan Simons <christiaans>
Group Member
Tue 22 Aug 2006 12:11:00 PM UTC, original submission:  

in udp_remove method, the following statement has a error!

"if (pcb2->next != NULL && pcb2->next == pcb) {
      /* remove pcb from list */
      pcb2->next = pcb->next;
    }"

it should be "...pcb2->next = pcb2->next->next;...."

Anonymous

 

(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

 

CC list is empty

 

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
2006-08-29 christiaans StatusNone Invalid
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code