fuzzbench integration

This commit is contained in:
van Hauser
2020-08-10 11:45:32 +02:00
parent 3aa7d8081d
commit 464c27082a
2 changed files with 16 additions and 7 deletions

View File

@ -834,6 +834,11 @@ void __afl_manual_init(void) {
if (getenv("AFL_DISABLE_LLVM_INSTRUMENTATION")) {
init_done = 1;
is_persistent = 0;
__afl_sharedmem_fuzzing = 0;
if (__afl_area_ptr == NULL)
__afl_area_ptr = __afl_area_initial;
if (getenv("AFL_DEBUG"))
fprintf(stderr,
"DEBUG: disabled instrumenation because of "
@ -855,6 +860,8 @@ void __afl_manual_init(void) {
__attribute__((constructor(CONST_PRIO))) void __afl_auto_init(void) {
if (getenv("AFL_DISABLE_LLVM_INSTRUMENTATION")) return;
is_persistent = !!getenv(PERSIST_ENV_VAR);
if (getenv(DEFER_ENV_VAR)) return;