Closed
Description
In calibrate_case()
, there are two count_bytes
to check the bitmap.
The first check copys the second one, including the condition!afl->stage_cur
. However, the first check is outside the loop and the value of stage_cur
is questionable.
/* we need a dummy run if this is LTO + cmplog */
if (unlikely(afl->shm.cmplog_mode)) {
...
if (!afl->non_instrumented_mode && !afl->stage_cur &&
!count_bytes(afl, afl->fsrv.trace_bits)) {
fault = FSRV_RUN_NOINST;
goto abort_calibration;
}
}
...
for (afl->stage_cur = 0; afl->stage_cur < afl->stage_max; ++afl->stage_cur) {
...
if (!afl->non_instrumented_mode && !afl->stage_cur &&
!count_bytes(afl, afl->fsrv.trace_bits)) {
fault = FSRV_RUN_NOINST;
goto abort_calibration;
}
}
Metadata
Metadata
Assignees
Labels
No labels