diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-13 20:37:39 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-13 20:37:39 +0100 |
commit | 08fe1e2cd7388399fc44a5217f4ca5e3fc8f84d3 (patch) | |
tree | 9830e519429b5c54fd0aac31dcf996421e2cd9b6 /src | |
parent | 746a2a0ed0fc3342ee4bf13697319a99ea3eb23f (diff) | |
download | afl++-08fe1e2cd7388399fc44a5217f4ca5e3fc8f84d3.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |