[Fontconfig] fontconfig: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Dec 19 02:23:22 UTC 2017


 src/fcmatch.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7ca28c2fedb34c1db5ee3116d335f15195859db0
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Dec 18 21:22:21 2017 -0500

    Don't crash
    
    Not proper fix necessarily. But fixes this crash:
    https://bugs.freedesktop.org/show_bug.cgi?id=101889#c81

diff --git a/src/fcmatch.c b/src/fcmatch.c
index 5d30cc7..95bb204 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -653,7 +653,7 @@ FcFontRenderPrepare (FcConfig	    *config,
 		if (!l)
 		    goto bail0;
 		dir = FcStrDirname (FcValueString (&l->value));
-		if (FcHashTableFind (config->alias_table, dir, (void **) &alias))
+		if (config && FcHashTableFind (config->alias_table, dir, (void **) &alias))
 		{
 		    FcChar8 *base = FcStrBasename (FcValueString (&l->value));
 		    FcChar8 *s = FcStrBuildFilename (alias, base, NULL);


More information about the Fontconfig mailing list