Bug 10267 - buffer overflow fix
Summary: buffer overflow fix
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: freetype font backend (show other bugs)
Version: 1.4.0
Hardware: Other All
: medium normal
Assignee: Behdad Esfahbod
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 07:06 UTC by Stanislav Brabec
Modified: 2007-03-13 12:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
cairo-snprintf-overflow.patch (531 bytes, patch)
2007-03-12 07:07 UTC, Stanislav Brabec
Details | Splinter Review

Description Stanislav Brabec 2007-03-12 07:06:06 UTC
This is a fix for following serious gcc warning.

cairo-truetype-subset.c:698: warning: call to __builtin___snprintf_chk will always overflow destination buffer

Note that this is the simplest patch, which may be not fully correct. Please review the code before applying.
Comment 1 Stanislav Brabec 2007-03-12 07:07:08 UTC
Created attachment 9106 [details] [review]
cairo-snprintf-overflow.patch
Comment 2 Adrian Johnson 2007-03-13 12:33:06 UTC
Fixed in current git version.


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.