diff options
author | vanhauser-thc <vh@thc.org> | 2024-05-16 14:27:33 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-05-16 14:27:33 +0200 |
commit | 497f341eac230fab13d6b5c5153c36321371b180 (patch) | |
tree | ae0d66d8a364ae4674f9a915457d83d55ed56fac /src/afl-fuzz-queue.c | |
parent | 068aa13c6b5034475101722bd56ae854745b538e (diff) | |
download | afl++-497f341eac230fab13d6b5c5153c36321371b180.tar.gz |
Revert "no weights"
This reverts commit 068aa13c6b5034475101722bd56ae854745b538e.
Diffstat (limited to 'src/afl-fuzz-queue.c')
-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; |