Bug 2661 - [PENDING] overflow in popthelp.c:singleOptionHelp
Summary: [PENDING] overflow in popthelp.c:singleOptionHelp
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Tollef Fog Heen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 06:45 UTC by Matthias Clasen
Modified: 2005-10-16 06:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
a lo-tech fix (389 bytes, patch)
2005-03-07 06:46 UTC, Matthias Clasen
Details | Splinter Review

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.