This commit is contained in:
vanhauser-thc
2024-07-19 16:50:01 +02:00
parent 32ebe44453
commit 1ddc3df325

View File

@ -1022,9 +1022,12 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
if (likely(afl->schedule == WEIGHT)) { if (likely(afl->schedule == WEIGHT)) {
u32 val = 200; u32 val = 100;
return val * (q->weight * 2); if (unlikely(q->favored)) { val = val << 1; }
if (unlikely(!q->was_fuzzed)) { val = val << 1; }
return val * (q->weight);
} }