mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
test support for forced persistent mode
This commit is contained in:
@ -198,7 +198,7 @@ static void usage(u8 *argv0, int more_help) {
|
||||
" -I command - execute this command/script when a new crash is "
|
||||
"found\n"
|
||||
//" -B bitmap.txt - mutate a specific test case, use the
|
||||
//out/default/fuzz_bitmap file\n"
|
||||
// out/default/fuzz_bitmap file\n"
|
||||
" -C - crash exploration mode (the peruvian rabbit thing)\n"
|
||||
" -b cpu_id - bind the fuzzing process to the specified CPU core "
|
||||
"(0-...)\n"
|
||||
@ -1897,6 +1897,17 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
check_binary(afl, argv[optind]);
|
||||
|
||||
if (getenv(PERSIST_ENV_VAR) && !afl->persistent_mode) {
|
||||
|
||||
WARNF(
|
||||
"Persistent mode environment variable detected, forcing persitent "
|
||||
"mode!");
|
||||
afl->persistent_mode = 1;
|
||||
afl->fsrv.persistent_mode = 1;
|
||||
afl->shmem_testcase_mode = 1;
|
||||
|
||||
}
|
||||
|
||||
#ifdef AFL_PERSISTENT_RECORD
|
||||
if (unlikely(afl->fsrv.persistent_record)) {
|
||||
|
||||
|
Reference in New Issue
Block a user