[Fontconfig] Fcrozat's libxml2 crash.

Behdad Esfahbod behdad at cs.toronto.edu
Mon Dec 12 02:44:50 PST 2005


Seems like this fixes that:

Index: src/fcxml.c
===================================================================
RCS file: /cvs/fontconfig/fontconfig/src/fcxml.c,v
retrieving revision 1.37.4.10
diff -u -p -r1.37.4.10 fcxml.c
--- src/fcxml.c 30 Nov 2005 22:13:21 -0000      1.37.4.10
+++ src/fcxml.c 12 Dec 2005 10:43:04 -0000
@@ -1024,6 +1024,9 @@ FcConfigGetAttribute (FcConfigParse *par
        return 0;

     attrs = parse->pstack->attr;
+    if (!attrs)
+       return 0;
+
     while (*attrs)
     {
        if (!strcmp ((char *) *attrs, attr))


--behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"


More information about the Fontconfig mailing list