lwIP - A Lightweight TCP/IP stack - Bugs: bug #21075, pbuf_realloc() use with PBUF_RAM...
You are not allowed to post comments on this tracker with your current authentication level.
bug #21075: pbuf_realloc() use with PBUF_RAM and MEM_LIBC_MALLOC fails
Submitter: | Bill Florac <bflorac> | ||
Submitted: | Fri 14 Sep 2007 08:37:02 AM UTC | ||
Category: | pbufs | Severity: | 3 - Normal |
Item Group: | Crash Error | Status: | Fixed |
Privacy: | Public | Assigned to: | fbernon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | None |
Sat 15 Sep 2007 07:36:43 AM UTC, comment #4: |
Frédéric Bernon <fbernon> |
Sat 15 Sep 2007 06:59:08 AM UTC, comment #3: Ok, I have chat with Bill, and it's "better than nothing!". So, I check in the patch. Bill, can I close it ? |
Frédéric Bernon <fbernon> |
Fri 14 Sep 2007 10:38:54 AM UTC, comment #2:
|
Simon Goldschmidt <goldsimon> |
Fri 14 Sep 2007 10:09:12 AM UTC, comment #1: mem_realloc is only used by pbuf_realloc, in this last one doc (previous comment), we can read "@note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain).". There is also in the pbuf_realloc code this check:
|
Frédéric Bernon <fbernon> |
Fri 14 Sep 2007 08:37:02 AM UTC, original submission:
The pbuf_realloc() function when used with a PBUF_RAM type buffer and the MEM_LIBC_MALLOC set to 1 can fail. The function calls mem_realloc() which is defined as realloc(). When calling realloc() there is no certainty that the pointer passed will be the same one returned. In fact, the return values is being ignored and could be null (unlikely on a shrink).
|
Bill Florac <bflorac> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-09-15 | fbernon | Status | Works For Me | Fixed | |
Open/Closed | Open | Closed | |||
2007-09-15 | fbernon | Status | None | Works For Me | |
Assigned to | None | fbernon | |||
Planned Release | 1.3.0 |
Powered by Savane 3.13-caa5.
Corresponding source code
ok for Bill, so, I close it...