buglwIP - A Lightweight TCP/IP stack - Bugs: bug #49264, Crash Error when...

 
 

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

bug #49264: Crash Error when LWIP_SOCKET_OFFSET is in use

Submitted by:  Arpit Agarwal <arpit_iitg>
Submitted on:  Tue 04 Oct 2016 08:41:40 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Tue 04 Oct 2016 10:35:23 AM UTC, comment #1:

Thanks for reporting!

Dirk Ziegelmeier <dziegel>
Project Member
Tue 04 Oct 2016 08:41:40 AM UTC, original submission:

Crash Error occur in lwip_socket_drop_registered_memberships API due to LWIP_ASSERT condition fail when LWIP_SOCKET_OFFSET is in use.

The reason is the assert condition i.e. "sockets[s].conn" which still uses the same value as passed in the function. I think this should have been adjusted when LWIP_SOCKET_OFFSET is in use.

Similarly the socket descriptor value is not adjusted in lwip_socket_register_membership / lwip_socket_unregister_membership APIs.

I suggest the following fix in all the three APIs mentioned:

s -= LWIP_SOCKET_OFFSET; //Code for fix

The Fix should be added in all the three API's at the very start, before any processing.

Arpit Agarwal <arpit_iitg>

 

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 dziegel (Posted a comment)
  • -unavailable- added by arpit_iitg (Submitted the item)
  • -unavailable- added by arpit_iitg
  •  

    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 04 Oct 2016 10:35:55 AM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 04 Oct 2016 08:41:40 AM UTCarpit_iitgCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1