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

Submitter:  Per Ekman <perekman>
Submitted:  Mon 05 May 2014 10:07:49 AM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

(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 perekman (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
    2014-09-02 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code