summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-02 10:23:57 -0700
committerAkira TAGOH <akira@tagoh.org>2013-11-05 11:44:23 +0900
commit0b7f42f777a14ee61783fd95dd04e870f02d201e (patch)
treef739fd8cd6a6d3cb55caa8efc5cd58d7ccd68deb /fc-cache
parent5b8380d52eae55cba0adcc47d78a53c320d294ec (diff)
downloadfontconfig-0b7f42f777a14ee61783fd95dd04e870f02d201e.tar.gz
Avoid null pointer dereference in FcNameParse if malloc fails
Reported by parfait 1.3: Error: Null pointer dereference (CWE 476) Read from null pointer t at line 423 of src/fcname.c in function 'FcNameParse'. Function _FcObjectLookupOtherTypeByName may return constant 'NULL' at line 63, called at line 122 of src/fcobjs.c in function 'FcObjectLookupOtherTypeByName'. Function FcObjectLookupOtherTypeByName may return constant 'NULL' at line 122, called at line 67 of src/fcname.c in function 'FcNameGetObjectType'. Function FcNameGetObjectType may return constant 'NULL' at line 67, called at line 422 in function 'FcNameParse'. Null pointer introduced at line 63 of src/fcobjs.c in function '_FcObjectLookupOtherTypeByName'. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'fc-cache')
0 files changed, 0 insertions, 0 deletions