fontconfig/bugzilla-246783-do-not-crash-when-config-files-contain-broken-stuff.patch
OBS User autobuild 9fa0ef5f8f Accepting request 23972 from M17N
Copy from M17N/fontconfig based on submit request 23972 from user tiwai

OBS-URL: https://build.opensuse.org/request/show/23972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fontconfig?expand=0&rev=27
2009-11-10 08:58:26 +00:00

15 lines
411 B
Diff

Index: fontconfig-2.7.0/src/fcxml.c
===================================================================
--- fontconfig-2.7.0.orig/src/fcxml.c
+++ fontconfig-2.7.0/src/fcxml.c
@@ -539,6 +539,9 @@ FcTypecheckExpr (FcConfigParse *parse, F
{
const FcObjectType *o;
const FcConstant *c;
+
+ if (!expr)
+ return;
/* If parsing the expression failed, some nodes may be NULL */
if (!expr)