[Fontconfig] Patch: avoid crashes is config files contain junk

Frederic Crozat fcrozat at mandriva.com
Wed Aug 29 07:24:13 PDT 2007


Le mercredi 21 février 2007 à 18:11 +0100, Mike FABIAN a écrit :
> If ~/.fonts.conf contains:
> 
>   <edit mode="assign_replace" name="spacing">
>    <int>mono</int>
>   </edit>
> 
> 
> fontconfig crashes:
> 
>     mfabian at magellan:~$ fc-match sans
>     Fontconfig error: "~/.fonts.conf", line 46: "mono": not a valid integer
>     セグメンテーション違反です (core dumped)
>     mfabian at magellan:~$
> 
> Of course the above is nonsense, “mono” is no valid integer indeed.
> 
> But I think nevertheless fontconfig should not crash in that case.
> 
> A patch is attached. 

It seems this patch never got committed on GIT.

Keith, any comment ?

-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva



More information about the Fontconfig mailing list