Skip to content

Commit 497f341

Browse files
committed
Revert "no weights"
This reverts commit 068aa13.
1 parent 068aa13 commit 497f341

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/afl-fuzz-queue.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q,
6565
double avg_top_size) {
6666

6767
double weight = 1.0;
68-
/*
68+
6969
if (likely(afl->schedule >= FAST && afl->schedule <= RARE)) {
7070

7171
u32 hits = afl->n_fuzz[q->n_fuzz_entry];
@@ -79,9 +79,8 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q,
7979

8080
if (unlikely(weight < 0.1)) { weight = 0.1; }
8181
if (unlikely(q->favored)) { weight *= 5; }
82-
*/
83-
if (unlikely(!q->was_fuzzed)) { weight *= 3; }
84-
if (unlikely(q->fs_redundant)) { weight = 0.0; }
82+
if (unlikely(!q->was_fuzzed)) { weight *= 2; }
83+
if (unlikely(q->fs_redundant)) { weight *= 0.8; }
8584

8685
return weight;
8786

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy