Bug 7936 - fontconfig crashes on systems with 64k page sizes
Summary: fontconfig crashes on systems with 64k page sizes
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2_1
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 02:49 UTC by Ray Strode [halfline]
Modified: 2006-09-01 12:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
if necessary, fill extra space byte for page size number (1.52 KB, patch)
2006-08-21 02:50 UTC, Ray Strode [halfline]
Details | Splinter Review

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.