buglwIP - A Lightweight TCP/IP stack - Bugs: bug #47805, dhcp_recv can dereference NULL...

 
 

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

bug #47805: dhcp_recv can dereference NULL pointer

Submitted by:  Jan Breuer <jan_breuer>
Submitted on:  Fri 29 Apr 2016 09:04:35 AM UTC  
 
Category: DHCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Fri 29 Apr 2016 09:17:20 AM UTC, comment #1:

Correct! Thanks Jan!

Dirk Ziegelmeier <dziegel>
Project Member
Fri 29 Apr 2016 09:04:35 AM UTC, original submission:

In dhcp_recv function there is

if ((dhcp == NULL) || ...) goto free_pbuf_and_return;

but in free_pbuf_and_return there is

dhcp->msg_in = NULL;

which is possibly dereferencing NULL pointer.

Jan Breuer <jan_breuer>

 

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 jan_breuer (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
    Fri 29 Apr 2016 09:17:20 AM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1