]> granicus.if.org Git - libass/commit
fontconfig: fix error checking
authorwm4 <wm4@nowhere>
Fri, 28 Aug 2015 12:02:19 +0000 (14:02 +0200)
committerwm4 <wm4@nowhere>
Fri, 28 Aug 2015 12:07:06 +0000 (14:07 +0200)
commitb658669c0df5ef3adacd92cc29a9e679bd8bdd2f
tree1fd5485d94d776b28cb510c518682b744e3f1981
parentd164226a4c1c6c29951819862d505161065eed6f
fontconfig: fix error checking

FcInitLoadConfig() could faul, leaving rc=1 and fc->config=NULL, making
FcConfigBuildFonts() potentially crash.

Also, the FcConfigBuildFonts() return value was not checked.
libass/ass_fontconfig.c