buglwIP - A Lightweight TCP/IP stack - Bugs: bug #42299, tcp_abort() leaves freed pcb on...

 
 

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

bug #42299: tcp_abort() leaves freed pcb on tcp_bound_pcbs list

Submitted by:  Per Ekman <perekman>
Submitted on:  Mon 05 May 2014 10:07:49 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.1

Tue 02 Sep 2014 06:59:31 PM UTC, comment #2:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Tue 20 May 2014 10:44:35 AM UTC, comment #1:

I've been running for a while with the following added to tcp_abandon()

if (pcb->state == CLOSED) {
if (pcb->local_port != 0)
TCP_RMV(&tcp_bound_pcbs, pcb);
}

It fixed the problem and I haven't seen any other strangeness (yet).

Per Ekman <perekman>
Mon 05 May 2014 10:07:49 AM UTC, original submission:

tcp_abort()/tcp_abandon() frees a pcb without checking if it needs to
be removed from the tcp_bound_pcbs list. The consequence of this is
that tcp_abort() cannot be used to clean up a pcb which is bound to an
address but unconnected.

Per Ekman <perekman>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by perekman (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Sep 2014 06:59:31 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1