lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Can serve only short webpages


From: address@hidden
Subject: Re: [lwip-users] Can serve only short webpages
Date: Sun, 4 Mar 2018 22:25:34 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03.03.2018 23:30, JM wrote:
So now the only entry into lwIP is through low_level_input(). I've spent a good deal of time trying to debug this and where I got stuck was in  tcp_receive() where it calls pbuf_clen(), which returns MEMP_NUM_PBUF and that's where the underflow originates. If I look at the pbuf passed into pbuf_clen() it does indeed have all pbufs in existence chained to it. I can't understand where this occurred however.

I guess this is because the pbuf you see is actually freed. The 'next' pointer of a pbuf just happens to be the same place as in the list of free element in a mem pool.

To me it seems like a "use after free" bug.

Simon

reply via email to

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