mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
original fix for calibration error
This commit is contained in:
@ -494,6 +494,8 @@ u8 fuzz_one_original(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
||||||
|
|
||||||
|
afl->queue_cur->exec_cksum = 0;
|
||||||
|
|
||||||
res =
|
res =
|
||||||
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
||||||
|
|
||||||
@ -2567,6 +2569,8 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
|
|||||||
|
|
||||||
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
||||||
|
|
||||||
|
afl->queue_cur->exec_cksum = 0;
|
||||||
|
|
||||||
res =
|
res =
|
||||||
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
||||||
|
|
||||||
|
@ -369,8 +369,6 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem,
|
|||||||
|
|
||||||
abort_calibration:
|
abort_calibration:
|
||||||
|
|
||||||
if (q->cal_failed) { q->exec_cksum = 0; }
|
|
||||||
|
|
||||||
if (new_bits == 2 && !q->has_new_cov) {
|
if (new_bits == 2 && !q->has_new_cov) {
|
||||||
|
|
||||||
q->has_new_cov = 1;
|
q->has_new_cov = 1;
|
||||||
|
Reference in New Issue
Block a user