about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-05-16 14:27:04 +0200
committervanhauser-thc <vh@thc.org>2024-05-16 14:27:04 +0200
commit068aa13c6b5034475101722bd56ae854745b538e (patch)
treeb10d6c567ec57a192a526a01b6f7a4c105bd10eb /src/afl-fuzz-queue.c
parenta26bb0b0f247a571cad56c9566235321cc93ba41 (diff)
downloadafl++-068aa13c6b5034475101722bd56ae854745b538e.tar.gz
no weights
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index 2318df60..148f362c 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,8 +79,9 @@ 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 *= 2; }
-  if (unlikely(q->fs_redundant)) { weight *= 0.8; }
+*/
+  if (unlikely(!q->was_fuzzed)) { weight *= 3; }
+  if (unlikely(q->fs_redundant)) { weight = 0.0; }
 
   return weight;