lwIP - A Lightweight TCP/IP stack - Bugs: bug #56077, len member wrong in pool allocated...
You are not allowed to post comments on this tracker with your current authentication level.
bug #56077: len member wrong in pool allocated pbuf
Submitter: | Karl Heinz Buchegger <kbuchegg> | ||
Submitted: | Fri 05 Apr 2019 11:52:38 AM UTC | ||
Category: | pbufs | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | git head |
Wed 11 Dec 2019 08:57:09 PM UTC, comment #4: |
Simon Goldschmidt <goldsimon> |
Tue 30 Apr 2019 11:47:35 AM UTC, comment #3: I don't really get what you're trying to say.
|
Simon Goldschmidt <goldsimon> |
Fri 05 Apr 2019 02:30:06 PM UTC, comment #2: I am sorry, I made a mistake.
|
Karl Heinz Buchegger <kbuchegg> |
Fri 05 Apr 2019 12:00:16 PM UTC, comment #1: Also I would like to suggest a clearification in the documentation on the meaning of the len (and total_len) member, since
|
Karl Heinz Buchegger <kbuchegg> |
Fri 05 Apr 2019 11:52:38 AM UTC, original submission:
Can someone please confirm if this is really a bug or am I missing something
|
Karl Heinz Buchegger <kbuchegg> |
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-12-11 | goldsimon | Status | Need Info | Invalid | |
Assigned to | None | goldsimon | |||
Open/Closed | Open | Closed | |||
2019-04-30 | goldsimon | Status | None | Need Info |
Powered by Savane 3.13-f8d8.
Corresponding source code
I suspect this is from reading the code and it's invalid. memp_std.h creates the PBUF_POOL with LWIP_PBUF_MEMPOOL, not LWIP_MEMPOOL. This macro adjust the pool item's size from PBUF_POOL_BUFSIZE to (PBUF_POOL_BUFSIZE + sizeof(struct pbuf)), so PBUF_POOL_BUFSIZE is really the size available for payload.