delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/02/01/11:38:13

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: tiny patch for execvp [Re: Problems with winsup-981223]
1 Feb 1999 11:38:13 -0800 :
Message-ID: <19990201142232.A27502.cygnus.cygwin32.developers@cygnus.com>
References: <19981227212632 DOT A24196 AT cygnus DOT com>
Mime-Version: 1.0
To: DJ Delorie <dj AT delorie DOT com>
Cc: cygwin32-developers AT cygnus DOT com

On Mon, Feb 01, 1999 at 02:09:58PM -0500, DJ Delorie wrote:
>> If so, does that mean that this code would do something funky:
>> 
>> char *sys_errlist[];
>> main()
>> {
>>   puts(sys_errlist[1]);
>> }
>
>Yes.  sys_errlist would be the address of a chunk of i386 opcodes, not
>the address of the table of pointers to strings.

So, I think that I would vastly prefer the link time error to a
runtime core dump.

I've modified libiberty and will be testing this today.

-chris

- Raw text -


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