Bug 2661

Summary: [PENDING] overflow in popthelp.c:singleOptionHelp
Product: pkg-config Reporter: Matthias Clasen <mclasen>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: a lo-tech fix

Description Matthias Clasen 2005-03-07 06:45:06 UTC
When compiled with gcc4, pkg-config --help crashes due to an overflow in the
format string in singleOptionHelp.
Comment 1 Matthias Clasen 2005-03-07 06:46:18 UTC
Created attachment 2030 [details] [review]
a lo-tech fix
Comment 2 Stanislav Brabec 2005-05-24 07:34:02 UTC
char format[11] should be enough.

Can anybody commit the fix for this crasher?
Comment 3 Tollef Fog Heen 2005-08-23 04:45:59 UTC
2005-08-23  Tollef Fog Heen  <tfheen@err.no>

        * popthelp.c: char format[10] overflowed always with gcc4, so use
        positional parameters instead.  Thanks to Scott James Remnant for
        pointing me to that solution.  Debian #321961, Ubuntu #13950,
        Freedesktop #2661
Comment 4 Tollef Fog Heen 2005-10-16 23:21:32 UTC
0.20 has been released with a fix for this problem.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.