Patch: fc-cache crashes on some .ttc fonts

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

 



For details see:

http://bugzilla.novell.com/show_bug.cgi?id=153402

If the function GetScriptTags () frees *stags, it should set it to
NULL, otherwise FcFontCapabilities () might try to free the same
memory again.

diff -ru fontconfig-2.3.93.20060222.orig/src/fcfreetype.c fontconfig-2.3.93.20060222/src/fcfreetype.c
--- fontconfig-2.3.93.20060222.orig/src/fcfreetype.c	2006-02-24 16:11:43.000000000 +0100
+++ fontconfig-2.3.93.20060222/src/fcfreetype.c	2006-02-24 17:01:59.000000000 +0100
@@ -2840,6 +2840,7 @@
 Fail:
     *script_count = 0;
     ftglue_free( memory, *stags );
+    *stags=NULL;
     return error;
 }
 
-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

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

  Powered by Linux