[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:


  Nachricht geschickt von/durch Savannah

reply via email to

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