buglwIP - A Lightweight TCP/IP stack - Bugs: bug #50418, LWIP_EVENT_API: fix invalid...

 
 

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

bug #50418: LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Tue 28 Feb 2017 11:12:14 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Tue 28 Feb 2017 11:13:57 AM UTC, comment #1:

Fixed in http://git.savannah.gnu.org/cgit/lwip.git/commit/?id=f85eed0ab30f8ced3d5c471626ca0ffca17fe5fc

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Tue 28 Feb 2017 11:12:14 AM UTC, original submission:

See bug #50276, comment #2:
When a pcb is in SYN_RCVD, poll and err events can be executed for this pcb. However, the application has not seen this pcb yet (just created by listen input).
For LWIP_CALLBACK_API, all callbacks except 'accept' are still NULL.
However, the callback_arg is != NULL and typically set to the listener. Now if the listener has been closed already, the callback_arg points to deallocated memory.

Since this is not a problem for LWIP_CALLBACK_API, the fix prevents calling poll and err events for pcbs in SYN_RCVD.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.

 

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 (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Feb 2017 11:13:57 AM UTCgoldsimonStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1