[Fontconfig] Crash with fontconfig 2.3.92

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
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

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux