mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
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.
This commit is contained in:
@ -76,7 +76,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
|
|||||||
} else {
|
} else {
|
||||||
n_arg = alloc_printf("%s%s/%s%s", argv[i], cwd, prog_in, aa_loc + 2);
|
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;
|
argv[i] = n_arg;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user