[Fontconfig] fontconfig: Branch 'master'

Akira TAGOH tagoh at kemper.freedesktop.org
Thu Jun 14 12:10:39 UTC 2018


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

New commits:
commit 6cc99d6a82ad67d2f5eac887b28bca13c0dfddde
Author: Tom Anderson <thomasanderson at chromium.org>
Date:   Mon Jun 11 23:16:42 2018 -0700

    Fix heap use-after-free

diff --git a/src/fccache.c b/src/fccache.c
index ada91d1..9831a1f 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -163,8 +163,8 @@ FcDirCacheDeleteUUID (const FcChar8  *dir,
 	target = FcStrBuildFilename (dir, ".uuid", NULL);
 
     ret = unlink ((char *) target) == 0;
-    FcStrFree (target);
     FcHashTableRemove (config->uuid_table, target);
+    FcStrFree(target);
 
     return ret;
 }


More information about the Fontconfig mailing list