diff options
author | van Hauser <vh@thc.org> | 2023-03-02 13:56:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 13:56:07 +0100 |
commit | 12262d3a6304cd4294100507aabe438345d11420 (patch) | |
tree | 5bdd3f9cca4beeb14e54b3cb3152f2eb3287d367 | |
parent | d8ba0caab3661ef045f6bc6d99481ab14d165262 (diff) | |
parent | 86bf0097921bbe9867a0ec7e9b108c5d72907d6b (diff) | |
download | afl++-12262d3a6304cd4294100507aabe438345d11420.tar.gz |
Merge pull request #1661 from AFLplusplus/weight
fix item weighting
-rw-r--r-- | src/afl-fuzz-queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 65446799..4eb55bb3 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -67,7 +67,7 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q, if (likely(afl->schedule >= FAST && afl->schedule <= RARE)) { u32 hits = afl->n_fuzz[q->n_fuzz_entry]; - if (likely(hits)) { weight *= (log10(hits) + 1); } + if (likely(hits)) { weight /= (log10(hits) + 1); } } |