Bug 7936

Summary: fontconfig crashes on systems with 64k page sizes
Product: fontconfig Reporter: Ray Strode [halfline] <rstrode>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: 2_1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: if necessary, fill extra space byte for page size number

Description Ray Strode [halfline] 2006-08-21 02:49:08 UTC
(downstream report is http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202152)

Fontconfig currently reserves 5 bytes right now to encode the system page size
into a serial string.  One of those bytes is always " " (space), leaving 4 bytes
for the actual hex encoded value.  The problem is 4 bytes is 1 bit too small for
encoding the page size on 64k page systems and so on these systems teh serial
string buffer overflows.

I posted a message about this problem here:

http://lists.freedesktop.org/archives/fontconfig/2006-August/002363.html
Comment 1 Ray Strode [halfline] 2006-08-21 02:50:52 UTC
Created attachment 6629 [details] [review]
if necessary, fill extra space byte for page size number
Comment 2 Keith Packard 2006-09-01 12:48:24 UTC
Page size dependence has been removed from fc-2_4-keithp

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.