projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf1581
)
Fix a SIGSEGV on FcPatternGet* with NULL pattern
author
Akira TAGOH
<akira@tagoh.org>
Thu, 21 Mar 2013 02:58:06 +0000
(11:58 +0900)
committer
Akira TAGOH
<akira@tagoh.org>
Thu, 21 Mar 2013 02:58:06 +0000
(11:58 +0900)
src/fcpat.c
patch
|
blob
|
history
diff --git
a/src/fcpat.c
b/src/fcpat.c
index
b3b155d
..
25bff64
100644
(file)
--- 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;