test support for forced persistent mode

This commit is contained in:
vanhauser-thc
2022-02-04 12:09:07 +01:00
parent 80543a809e
commit d4c01c057b
4 changed files with 23 additions and 7 deletions

View File

@ -2818,7 +2818,7 @@ void check_binary(afl_state_t *afl, u8 *fname) {
OKF(cPIN "Persistent mode binary detected.");
setenv(PERSIST_ENV_VAR, "1", 1);
afl->persistent_mode = 1;
afl->fsrv.persistent_mode = 1;
afl->shmem_testcase_mode = 1;
} else if (getenv("AFL_PERSISTENT")) {
@ -2830,7 +2830,6 @@ void check_binary(afl_state_t *afl, u8 *fname) {
OKF("FRIDA Persistent mode configuration options detected.");
setenv(PERSIST_ENV_VAR, "1", 1);
afl->persistent_mode = 1;
afl->shmem_testcase_mode = 1;
}