|
From: | preet |
Subject: | [lwip-devel] [bug #50839] NULL pointer exception while using MEMP_OVERFLOW_CHECK=1 |
Date: | Thu, 20 Apr 2017 15:19:28 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 |
URL: <http://savannah.nongnu.org/bugs/?50839> Summary: NULL pointer exception while using MEMP_OVERFLOW_CHECK=1 Project: lwIP - A Lightweight TCP/IP stack Submitted by: preetpal Submitted on: Thu 20 Apr 2017 07:19:26 PM UTC Category: pbufs Severity: 3 - Normal Item Group: Crash Error Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None lwIP version: 2.0.0 _______________________________________________________ Details: 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 } _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?50839> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |