diff options
-rw-r--r-- | src/afl-fuzz-queue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 148f362c..2318df60 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -65,7 +65,7 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q, double avg_top_size) { double weight = 1.0; -/* + if (likely(afl->schedule >= FAST && afl->schedule <= RARE)) { u32 hits = afl->n_fuzz[q->n_fuzz_entry]; @@ -79,9 +79,8 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q, if (unlikely(weight < 0.1)) { weight = 0.1; } if (unlikely(q->favored)) { weight *= 5; } -*/ - if (unlikely(!q->was_fuzzed)) { weight *= 3; } - if (unlikely(q->fs_redundant)) { weight = 0.0; } + if (unlikely(!q->was_fuzzed)) { weight *= 2; } + if (unlikely(q->fs_redundant)) { weight *= 0.8; } return weight; |