1.3.5 access violation at 61013ED4 (net.cc)
Christopher Faylor
cgf@redhat.com
Fri Nov 23 16:39:00 GMT 2001
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/
More information about the Cygwin
mailing list