This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1769] getopt_long() crashes if optstring is NULL
- From: "wharms at bfs dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Jan 2006 17:55:58 -0000
- Subject: [Bug libc/1769] getopt_long() crashes if optstring is NULL
- References: <20051031180548.1769.wharms@bfs.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wharms at bfs dot de 2006-01-15 17:55 -------
Subject: Re: getopt_long() crashes if optstring is NULL
this is ok for string functions. but sometimes getopt_long() may get
optstring==NULL because some user has a program without any short option.
re,
walter
drepper at redhat dot com wrote:
> ------- Additional Comments From drepper at redhat dot com 2006-01-15 17:45 -------
> No need to send a patch for the documentation. This is never documented and we
> won't start because with the same argument we would have to say, for every
> string function for instance, that passing a NULL pointer will cause a crash.
>
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1769
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.