mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
Increase fuzz_level for mopt_common_fuzzing
Change performance score calculation for lin and quad power schedules
This commit is contained in:
@ -5683,6 +5683,7 @@ pacemaker_fuzzing:
|
||||
|
||||
} /* block */
|
||||
|
||||
++afl->queue_cur->fuzz_level;
|
||||
return ret_val;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user