[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc()
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc() |
Date: |
Wed, 15 Jul 2009 16:27:33 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1) Gecko/20090624 Firefox/3.5 |
Follow-up Comment #4, bug #27034 (project lwip):
Hm, if it really only checks "PBUF_POOL_BUFSIZE must be bigger than
MEM_ALIGNMENT", then we'd better move the check into init.c so that it isn't
executed always.
However, I'd like to know what the purpose of
pbuf_alloc(PBUF_RAW, 0, PBUF_POOL);
is? Since there is no API that supports increasing a pbuf's length without
moving the payload to the front (which you can't in this case, because
PBUF_RAW is used), you'll end up with a pbuf of zero length, which is bound to
lead to problems in other parts of the stack. There are checks for pbuf->len
not being zero somewhere... (although I don't remember where and why).
I'd like to have this sorted out before changing the assert.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27034>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(),
Simon Goldschmidt <=
- RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Bill Auerbach, 2009/07/15
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), address@hidden, 2009/07/15
- RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Bill Auerbach, 2009/07/15
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Alain Mouette, 2009/07/15
- Re: RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/27
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Alain Mouette, 2009/07/16