From 08fe1e2cd7388399fc44a5217f4ca5e3fc8f84d3 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Fri, 13 Mar 2020 20:37:39 +0100 Subject: afl-common.c: fix my error: argv is a copy (ck_alloc based) Now unicorn_mode works with ASAN_BUILD and _WANT_ORIGINAL_AFL_ALLOC and DEBUG_BUILD also. --- src/afl-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/afl-common.c b/src/afl-common.c index c2a4c476..1bd28ee6 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -76,7 +76,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) { } else { n_arg = alloc_printf("%s%s/%s%s", argv[i], cwd, prog_in, aa_loc + 2); } - free(argv[i]); + ck_free(argv[i]); argv[i] = n_arg; } -- cgit 1.4.1