[Fontconfig] Crash with fontconfig 2.3.92
Frederic Crozat
fcrozat at mandriva.com
Wed Nov 16 06:27:13 PST 2005
Le mercredi 16 novembre 2005 à 12:28 +0100, Frederic Crozat a écrit :
> Hi,
>
> we have recently switched Mandriva cooker to fontconfig 2.3.92 and I've
> got a lot of bug report on a reproducible bug when configuration file is
> invalid :
>
> create ~/.fonts.conf with the following data :
>
> <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
> <match target="font" >
> <edit mode="assign" name="hintstyle" >
> <const>full</const>
> </edit>
> </match>
> </fontconfig>
>
> And you'll get nice crash when starting any application using
> fontconfig :)
>
> BTW, running valgrind with this particular config file is causing a lot
> of invalid memory access warning in valgrind.
The attached patch doesn't fix the crash but ensure fontconfig prints a
warning when invalid const value are used.
I'll investigate further to try to fix the crash but this part of
fontconfig is a little like black magic for me :)
--
Frederic Crozat <fcrozat at mandriva.com>
Mandriva
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.3.92-constantwarning.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20051116/d6c50329/fontconfig-2.3.92-constantwarning.bin
More information about the Fontconfig
mailing list