As some of you may have noticed, some fonts in gpdf/xpdf get badly
corrupted on Solaris Nevada on x86/x64 systems.

This was tracked down to an optimizer bug in the compiler version we
use to build FreeType for Solaris Nevada - currently the Sun Studio 10
compilers.   (We're working with the rest of the WOS on the Sun Studio
11 migration in the near future, but aren't there yet.)

The fix for this bug 6342416 has now been released in the current Sun
Studio 10 x86 optimizer patch - 117846-11.   Anyone building FreeType
for Solaris x86 with Studio 10 probably wants to install this patch.

Anyone who wants this fixed on their system before we get the new
compiler release fully tested with X and the official nevada builds
switched over should be able to download the FreeType 2.10 source
from www.freetype.org and build with a fixed compiler.
The configure options we use are simply:
     --enable-shared=yes --enable-static=no --prefix=/usr/sfw

We apply only a couple of bug fixes to FreeType in our builds
in Solaris.  The only critical bug fix patch we apply avoids a
segfault on uncompressing some of the locale-specific pcf.Z format
fonts included in Solaris:

CR6229445: fc-cache crash

--- src/lzw/zopen.c     Tue Mar  1 13:54:50 2005
+++ src/lzw/zopen.c     Tue Mar  1 16:00:09 2005
@@ -355,7 +355,11 @@
                 }
                 roffset = 0;
                 /* Round size down to integral number of codes. */
-               size = (size << 3) - (n_bits - 1);
+                if (size) {
+                    size = (size << 3) - (n_bits - 1);
+                } else
+                    return -1;
+
         }
         r_off = roffset;
         bits = n_bits;


-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to