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

Submitter:  preet <preetpal>
Submitted:  Thu 20 Apr 2017 07:19:26 PM UTC
   
 
Category:  pbufs Severity:  3 - Normal
Item Group:  Crash Error Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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: 
Dirk Ziegelmeier <dziegel>
Group administrator
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>

 

(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 dziegel (Posted a comment)
  • -email is unavailable- added by preetpal (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-20 dziegel StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code