[Fontconfig] Re: crash with 64k page sizes

Ray Strode halfline at gmail.com
Mon Aug 21 02:52:10 PDT 2006


Hi again,

> 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.
For those interested, I've filed this here:

https://bugs.freedesktop.org/show_bug.cgi?id=7936


More information about the Fontconfig mailing list