Red Hat Bugzilla – Bug 190589
getopt_long SEGVs when given "off by one" long names as an argument
Last modified: 2007-11-30 17:11:31 EST
Created attachment 128556 [details]
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.
Steps to Reproduce:
1. See attached program.
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.