Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 23 Nov 2001 19:39:55 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: 1.3.5 access violation at 61013ED4 (net.cc) Message-ID: <20011124003955.GA11599@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <003101c17455$d9a3d700$0101a8c0 AT intelix DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003101c17455$d9a3d700$0101a8c0@intelix.com> User-Agent: Mutt/1.3.23.1i 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/