lwip-members
[Top][All Lists]
Advanced

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

Re: [lwip-members] accessing NULL pbuf in new code


From: David Haas
Subject: Re: [lwip-members] accessing NULL pbuf in new code
Date: Tue, 11 Feb 2003 15:06:24 -0500
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021107

Hi Jani,

I saw that briefly, but I want to have a closer look, because I might want the callback to be made anyway with a zero length. If so, I'll change it.

I had done some quick tcp testing, but I guess I did'nt ctrl-c the client.

David.


Jani Monoses wrote:

Hi David I fixed two NULL pbuf accesses in new select() callback related code
They seem easy enough but might not be the best since I have not looked at the 
select
code as a whole and maybe some similar fixes are needed in other places where
p->tot_len is modified without checking whether it's a valid pbuf.
The crashes I got and fixed happen when recv_tcp and netconn_recv get NULL pbuf
which can happen when a FIN packet arrives.Simply CTRL-C ing a client which 
talked to the unix
simulator caused the latter to crash.
(In api_lib.c and api_msg.c )

Jani.


_______________________________________________
lwip-members mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/lwip-members








reply via email to

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