[Top][All Lists]

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

[lwip-users] pbuf leak for HTTP POST

From: Becker Markus
Subject: [lwip-users] pbuf leak for HTTP POST
Date: Thu, 25 Sep 2014 14:04:05 +0200


we've had a pbuf leak of the PBUF_POOL when using the httpserver_raw
from lwip-contrib.git at the processing of HTTP POSTs, which led to the
complete stack becoming unresponsive.

Our fix was in

http_post_request(struct pbuf **inp, struct http_state *hs, char *data,
u16_t data_len, char *uri, char *uri_end)

to add
just before just before line 1479 
            *inp = NULL;
So that the incoming packet is actually freed, which I think

Can this be confirmed by others? Is anyone else using the HTTP POST code
path of lwip? In order to reduce the time to failure we've set
PBUF_POOL_SIZE to a low value.

The contents of this e-mail and any attachments are confidential
to the intended recipient. They may not be disclosed to or used
by or copied in any way by anyone other than the intended recipient.
If this e-mail is received in error, please immediately notify
the sender and delete the e-mail and attached documents.

Please note that neither the sender nor the sender's company
accept any responsibility for viruses and it is your responsibility
to scan or otherwise check this e-mail and any attachments.

reply via email to

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