lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27105] realloc() cannot replace mem_realloc()


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #27105] realloc() cannot replace mem_realloc()
Date: Tue, 28 Jul 2009 06:06:09 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1

Follow-up Comment #4, bug #27105 (project lwip):

> I think merely resetting the payload pointer based on the 
> (possibly moved) pointer returned by realloc would also fix the problem.

That would be the proper solution, of course. But it would at least require a
check that the pbuf's ref-count is 1 or other references will become invalid.
And yes, a change like that shouldn't go into 1.3.1.

However, just leaving the pointer as it is (by #define mem_realloc(x,y) (x))
should do no harm at all, besides consuming too much memory.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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