|
From: | Jared Grubb |
Subject: | [lwip-devel] [bug #20478] memp_malloc returns bogus value on malloc failure |
Date: | Fri, 13 Jul 2007 17:36:01 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
Update of bug #20478 (project lwip): Severity: 3 - Normal => 4 - Important Status: None => Confirmed Planned Release: => 1.3.0 _______________________________________________________ Follow-up Comment #1: It returns NULL as long as MEMP_SIZE==0. But the return adds MEMP_SIZE to NULL and that is a bug. We can't add the "return NULL;" where you have it, because then SYS_ARCH_UNPROTECT doesn't happen. /* Need to check for NULL in case MEMP_SIZE>0 */ return (memp ? ((void*)((u8_t*)memp + MEMP_SIZE)) : NULL); } _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?20478> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |