[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes
From: |
David van Moolenbroek |
Subject: |
[lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes |
Date: |
Thu, 12 Jan 2017 19:06:21 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #2, bug #50040 (project lwip):
For clarity I should actually add a bit more of my reasoning as to why I think
just detecting the overflow is insufficient: there are currently cases where
lwIP itself will attempt to allocate buffers that large, e.g. the multicast
duplication case in udp_input(). Failing the allocation in the overflow case
would result in actual loss of functionality there. At the same time,
everything *should* go well there if the allocation is not truncated -
although obviously I have not been able to test that yet.
[Off-topic: that udp case does worry me: even if allocation doesn't get
truncated, it will hit the assertion I mentioned, but lwIP doesn't seem to
have a clear model for "use PBUF_POOL for allocation if we are using pools, or
PBUF_RAM otherwise" so I am not sure what should be done there. There are
probably other cases like that, and this does worry me quite a bit..]
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50040>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, chrysn, 2017/01/12
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, David van Moolenbroek, 2017/01/12
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes,
David van Moolenbroek <=
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, Simon Goldschmidt, 2017/01/12
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, David van Moolenbroek, 2017/01/12
- [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, Dirk Ziegelmeier, 2017/01/15
- Re: [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, address@hidden, 2017/01/12
- Re: [lwip-devel] [bug #50040] pbuf_alloc(..., 65534, PBUF_RAM) succedes, D.C. van Moolenbroek, 2017/01/12