This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: tiny patch for execvp [Re: Problems with winsup-981223]



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