delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/23/19:39:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019