From 108f6535b1cd032e0eb49810e07748c7c3801271 Mon Sep 17 00:00:00 2001 From: Thomas HUET Date: Sat, 29 Jul 2017 16:26:07 +0200 Subject: [PATCH] 2.47b --- afl-tmin.c | 6 +++--- config.h | 2 +- docs/ChangeLog | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/afl-tmin.c b/afl-tmin.c index c1abbe7c..3b3177b2 100644 --- a/afl-tmin.c +++ b/afl-tmin.c @@ -670,15 +670,15 @@ static void set_up_environment(void) { u8* use_dir = "."; - if (!access(use_dir, R_OK | W_OK | X_OK)) { + if (access(use_dir, R_OK | W_OK | X_OK)) { use_dir = getenv("TMPDIR"); if (!use_dir) use_dir = "/tmp"; - prog_in = alloc_printf("%s/.afl-tmin-temp-%u", use_dir, getpid()); - } + prog_in = alloc_printf("%s/.afl-tmin-temp-%u", use_dir, getpid()); + } /* Set sane defaults... */ diff --git a/config.h b/config.h index d39dc50d..f1d80eb4 100644 --- a/config.h +++ b/config.h @@ -21,7 +21,7 @@ /* Version string: */ -#define VERSION "2.46b" +#define VERSION "2.47b" /****************************************************** * * diff --git a/docs/ChangeLog b/docs/ChangeLog index 31b34ca5..b9e2208b 100644 --- a/docs/ChangeLog +++ b/docs/ChangeLog @@ -16,6 +16,12 @@ Not sure if you should upgrade? The lowest currently recommended version is 2.41b. If you're stuck on an earlier release, it's strongly advisable to get on with the times. +-------------- +Version 2.47b: +-------------- + + - Fixed cwd handling in afl-tmin. Spotted by Jakub Wilk. + -------------- Version 2.46b: --------------