lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #20478] memp_malloc returns bogus value on malloc fail


From: Frédéric Bernon
Subject: [lwip-devel] [bug #20478] memp_malloc returns bogus value on malloc failure
Date: Sat, 14 Jul 2007 14:51:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #9, bug #20478 (project lwip):

I not sure to understand why with MEMP_OVERFLOW_CHECK=0, the case should not
appears. If there is not memp in a pool, I think the memp[tab]==NULL, right?
In this case, even with MEMP_OVERFLOW_CHECK=0, the case where
memp_tab[type]==NULL at the beginning of memp_malloc should happen when we
are out of memory, and in this case ...

 return (void*)((u8_t*)memp + MEMP_SIZE);

should return an "invalid" address (MEMP_SIZE). Or there is something I don't
understand... Else, how should be the fix for you?


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20478>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]