Bug 190589 - getopt_long SEGVs when given "off by one" long names as an argument
getopt_long SEGVs when given "off by one" long names as an argument
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-05-03 15:23 EDT by James Antill
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-05-03 16:17:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
test case (248 bytes, text/plain)
2006-05-03 15:23 EDT, James Antill
no flags Details

  None (edit)
Description James Antill 2006-05-03 15:23:13 EDT
Created attachment 128556 [details]
test case
Comment 1 James Antill 2006-05-03 15:23:13 EDT
Description of problem:
 If you have a long option --foobar and pass --fooba getopt_long SEGVs.

Version-Release number of selected component (if applicable):
 FC4 and FC5 glibc, but not RHEL-4 glibc.

How reproducible:

Steps to Reproduce:
1. See attached program.
2. compile.
3. run.
Actual results:

Expected results:
 not SEGV
Comment 2 Jakub Jelinek 2006-05-03 16:17:32 EDT
That testcase is invalid.
See the "The last element of the array has to be filled with zeroes."
note in man getopt_long which is violated.

Note You need to log in before you can comment on or make changes to this bug.