[Fontconfig] crash with 64k page sizes

Ray Strode halfline at gmail.com
Fri Aug 11 10:51:47 PDT 2006


Hi,

So we recently got a bug in rawhide
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202152) where
fontconfig was crashing on a G5 ppc64 box.

It turns out that we've recently switched to using 64k page sizes on
that architecture.  This was causing problems in the
FcCacheMachineSignature() which tries to write the hex encoded page
size into 4 bytes of a buffer.

Behdad suggested a reasonable work around.  Namely, if the page size
won't fit in 4 bytes, extend the page size  one byte to the left into
the empty space before it in the buffer.  This should work because the
string is never parsed.

My patch to do this is attached.

--Ray
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.3.95-fix-page-size-overflow.patch
Type: text/x-patch
Size: 1556 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060811/d35769f3/fontconfig-2.3.95-fix-page-size-overflow.bin


More information about the Fontconfig mailing list