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!

Submitted by:  None
Submitted on:  Tue 22 Aug 2006 12:11:00 PM UTC  
 
Category: UDPSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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
Tue 29 Aug 2006 09:24:51 AM UTCchristiaansStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1