This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: ["Andrew Wiseman" <a.wiseman@bandc.dircon.co.uk>] libc/1677: gcc-lib : getopt(0,argv,"a:b:c") causes segmentation fault
- To: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- Subject: Re: ["Andrew Wiseman" <a.wiseman@bandc.dircon.co.uk>] libc/1677: gcc-lib : getopt(0,argv,"a:b:c") causes segmentation fault
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 30 Mar 2000 21:03:37 -0800
- Cc: "Andrew Wiseman" <a dot wiseman at bandc dot dircon dot co dot uk>
- References: <u8ln32kkkc.fsf@gromit.rhein-neckar.de>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Andreas Jaeger <aj@suse.de> writes:
> We could add a
> if (argc < 1)
> return -1;
> at the beginning of _getopt_internal.
>
> Anyone with a better idea?
No, seems to be the right thing to do. I've changed it appropriately.
Thanks,
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------