original fix for calibration error
MODIFY
src/afl-fuzz-one.c
src/afl-fuzz-one.c
@@ -494,6 +494,8 @@ u8 fuzz_one_original(afl_state_t *afl) {
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
+ afl->queue_cur->exec_cksum = 0;
+
res =
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) {
+ afl->queue_cur->exec_cksum = 0;
+
res =
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);

MODIFY
src/afl-fuzz-run.c
src/afl-fuzz-run.c
@@ -369,8 +369,6 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem,
abort_calibration:
- if (q->cal_failed) { q->exec_cksum = 0; }
-
if (new_bits == 2 && !q->has_new_cov) {
q->has_new_cov = 1;

original fix for calibration error