diff options
author | vanhauser-thc <vh@thc.org> | 2021-06-10 10:25:37 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-06-10 10:25:37 +0200 |
commit | a7340a1ac6c6165c8eb390a503758104c0d85bcb (patch) | |
tree | 3c3621aae7c8619264d7141f58de5c15b3c53369 /src/afl-fuzz-run.c | |
parent | b8092c62274d4b746290b44736cba0f7f4cc5400 (diff) | |
download | afl++-a7340a1ac6c6165c8eb390a503758104c0d85bcb.tar.gz |
fix AFL_CAL_FAST
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 493735ff..758bad25 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -314,7 +314,7 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, ++q->cal_failed; afl->stage_name = "calibration"; - afl->stage_max = afl->fast_cal ? 3 : CAL_CYCLES; + afl->stage_max = afl->afl_env.afl_cal_fast ? 3 : CAL_CYCLES; /* Make sure the forkserver is up before we do anything, and let's not count its spin-up time toward binary calibration. */ @@ -403,7 +403,8 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, } var_detected = 1; - afl->stage_max = afl->fast_cal ? CAL_CYCLES : CAL_CYCLES_LONG; + afl->stage_max = + afl->afl_env.afl_cal_fast ? CAL_CYCLES : CAL_CYCLES_LONG; } else { |