fontconfig: Branch 'master'

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

 



 src/fcpat.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c758206e8c0e5b572bd34183b184ef4361745333
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Thu Mar 21 11:58:06 2013 +0900

    Fix a SIGSEGV on FcPatternGet* with NULL pattern

diff --git a/src/fcpat.c b/src/fcpat.c
index b3b155d..25bff64 100644
--- a/src/fcpat.c
+++ b/src/fcpat.c
@@ -843,6 +843,8 @@ FcPatternObjectGet (const FcPattern *p, FcObject object, int id, FcValue *v)
     FcPatternElt   *e;
     FcValueListPtr l;
 
+    if (!p)
+	return FcResultNoMatch;
     e = FcPatternObjectFindElt (p, object);
     if (!e)
 	return FcResultNoMatch;
_______________________________________________
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