lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: Bug in tcp_out.c


From: Dave Perry
Subject: [lwip-users] Re: Bug in tcp_out.c
Date: Sat, 16 Jul 2005 14:28:30 -0400

Answering my own question:

Queue is uninitialized if the first goto memerr is taken.

Need:

Queue = NULL;

Someplace before the goto.

Dave
 

-----Original Message-----
 
Hi,

I'm working with the 1.1.0 release on an ARM (lpc2138) processor and ran
across this issue. I was getting Data Abort exceptions and I've tracked it
down to this point, but I'm not sure what a good fix would be.

In the function tcp_enqueue() there are several places which goto the label
memerr.  At that point, if queue is not null, this call is made:

tcp_segs_free(queue);

Trouble is, although queue is not null, it is not always a valid pointer
either. This eventually leads to the exception.

I'm not intimate with the code so I was hoping someone could suggest which
route through the function could be providing the bad pointer.

Thanks,
Dave



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






reply via email to

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