Bug 190589 - getopt_long SEGVs when given "off by one" long names as an argument
Summary: getopt_long SEGVs when given "off by one" long names as an argument
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-03 19:23 UTC by James Antill
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-05-03 20:17:32 UTC
Type: ---
Embargoed:


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

Description James Antill 2006-05-03 19:23:13 UTC
Created attachment 128556 [details]
test case

Comment 1 James Antill 2006-05-03 19:23:13 UTC
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:
 Always

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

Expected results:
 not SEGV

Comment 2 Jakub Jelinek 2006-05-03 20:17:32 UTC
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.