Blame SOURCES/fontconfig-fix-crash-on-fcfontsort.patch

c5b8fc
From 8a174b6c51581df6ffd6a5da056949c6c79337cf Mon Sep 17 00:00:00 2001
c5b8fc
From: Akira TAGOH <akira@tagoh.org>
c5b8fc
Date: Tue, 24 Sep 2013 11:14:57 +0900
c5b8fc
Subject: [PATCH] Fix a crash when FcPattern is set to null on FcFontSetList()
c5b8fc
 and FcFontList()
c5b8fc
c5b8fc
---
c5b8fc
 src/fclist.c | 2 ++
c5b8fc
 1 file changed, 2 insertions(+)
c5b8fc
c5b8fc
diff --git a/src/fclist.c b/src/fclist.c
c5b8fc
index c56e24c..a365098 100644
c5b8fc
--- a/src/fclist.c
c5b8fc
+++ b/src/fclist.c
c5b8fc
@@ -212,6 +212,8 @@ FcListPatternMatchAny (const FcPattern *p,
c5b8fc
 {
c5b8fc
     int		    i;
c5b8fc
 
c5b8fc
+    if (!p)
c5b8fc
+	return FcFalse;
c5b8fc
     for (i = 0; i < p->num; i++)
c5b8fc
     {
c5b8fc
 	FcPatternElt	*pe = &FcPatternElts(p)[i];
c5b8fc
-- 
c5b8fc
1.8.3.1
c5b8fc