This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.3.5 access violation at 61013ED4 (net.cc)
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 23 Nov 2001 19:39:55 -0500
- Subject: Re: 1.3.5 access violation at 61013ED4 (net.cc)
- References: <003101c17455$d9a3d700$0101a8c0@intelix.com>
- Reply-to: cygwin at cygwin dot com
On Fri, Nov 23, 2001 at 01:34:15PM -0600, Joe Hagen wrote:
>Using the fetchmail program under NT4, the
>subject access violation occurred.
>
>Disassembly of the code revealed that it was
>in the "is_nonblocking()" method of an "fhandler_socket"
>object.
>
>In net.cc, there are unchecked results from an assignment
>to an fhandler_socket* from cygheap->fdtab[fd].
>
>I suspect the file descriptor was NULL because of a socket
>connection loss. However, the member function is invoked
>unconditionally.
>
>The access violation is a result of dereferncing a member
>of the class using a NULL pointer.
>
>The affected functions are:
> cygwin_sendto
> cygwin_recvfrom
> cygwin_getpeername
> cygwin_recv
> cygwin_send
>
>
>I've created a patch file (diff -up) but this is my first time
>submitting a report.
There was not patch attached to this message so I've patched
the above offending functions myself.
Thanks very much for the analysis.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/