Increase fuzz_level for mopt_common_fuzzing

Change performance score calculation for lin and quad power schedules
This commit is contained in:
Daniil Kutz
2023-02-07 19:50:07 +03:00
parent 03e6d33a40
commit ab26356bf7
2 changed files with 7 additions and 0 deletions

View File

@ -5683,6 +5683,7 @@ pacemaker_fuzzing:
} /* block */
++afl->queue_cur->fuzz_level;
return ret_val;
}

View File

@ -1007,10 +1007,16 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
break;
case LIN:
// Don't modify perf_score for unfuzzed seeds
if (!q->fuzz_level) break;
factor = q->fuzz_level / (afl->n_fuzz[q->n_fuzz_entry] + 1);
break;
case QUAD:
// Don't modify perf_score for unfuzzed seeds
if (!q->fuzz_level) break;
factor =
q->fuzz_level * q->fuzz_level / (afl->n_fuzz[q->n_fuzz_entry] + 1);
break;