Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 18 Aug 2005 10:36:17 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.1.18: bug in strerror ? Message-ID: <20050818083617.GA2816@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Aug 18 17:13, Bill Metzenthen wrote: > #include > #include > int main(int argc, char *argv[]) > { > char *s; > s = strerror(-8); > printf("strerror returned pointer %p\n", s); > printf("string is \"%s\"\n", s); > return 0; > } > > The output on my system is: > $ ./test-strerror.exe > strerror returned pointer 0x8c > Segmentation fault (core dumped) Thanks for the testcase. I fixed a missing check for negative error numbers in strerror in current CVS. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/