fontconfig: Branch 'master'

[email protected] (Akira TAGOH) Thu, 14 Jun 2018 12:10:39 +0000 (UTC)
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
 src/fccache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6cc99d6a82ad67d2f5eac887b28bca13c0dfddde
Author: Tom Anderson <[email protected]>
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;
 }
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig