Bug 10267

Summary: buffer overflow fix
Product: cairo Reporter: Stanislav Brabec <sbrabec>
Component: freetype font backendAssignee: Behdad Esfahbod <freedesktop>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: ajohnson
Version: 1.4.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: cairo-snprintf-overflow.patch

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.