buglwIP - A Lightweight TCP/IP stack - Bugs: bug #50839, NULL pointer exception while using...

 
 

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

bug #50839: NULL pointer exception while using MEMP_OVERFLOW_CHECK=1

Submitted by:  preet <preetpal>
Submitted on:  Thu 20 Apr 2017 07:19:26 PM UTC  
 
Category: pbufsSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: 2.0.0

Thu 20 Apr 2017 09:01:59 PM UTC, comment #2:

Thanks! I accidentally put 2.0 for the bugs i opened

preet <preetpal>
Thu 20 Apr 2017 07:23:06 PM UTC, comment #1:

Already fixed: http://git.savannah.gnu.org/cgit/lwip.git/commit/src/core/memp.c?id=b99b7577fca92e9ad9697b56eb647c0498e3f7ce

Dirk Ziegelmeier <dziegel>
Project Member
Thu 20 Apr 2017 07:19:26 PM UTC, original submission:

There is a clear NULL pointer de-reference that needs to be corrected using (p != NULL) at two functions at memp.c

static void
memp_overflow_check_element_overflow(struct memp p, const struct memp_desc desc)
{
u16_t k;
u8_t *m;
#if MEMP_SANITY_REGION_AFTER_ALIGNED > 0
if (p != NULL) {
...
}
#endif
}

static void
memp_overflow_check_element_underflow(struct memp p, const struct memp_desc desc)
{
u16_t k;
u8_t *m;
#if MEMP_SANITY_REGION_BEFORE_ALIGNED > 0
if (p != NULL) {
...
}
#endif
}

preet <preetpal>

 

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 preetpal (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
    Thu 20 Apr 2017 07:23:06 PM UTCdziegelStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1