delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <corinna-cygwin AT cygwin DOT com> |
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: | <OF9C517414 DOT EF3CDB4F-ONCA257061 DOT 0023BC27-CA257061 DOT 0027B9AA AT cochlear DOT com DOT au> |
Mime-Version: | 1.0 |
In-Reply-To: | <OF9C517414.EF3CDB4F-ONCA257061.0023BC27-CA257061.0027B9AA@cochlear.com.au> |
User-Agent: | Mutt/1.4.2i |
On Aug 18 17:13, Bill Metzenthen wrote: > #include <stdio.h> > #include <string.h> > 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |