diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 18df3899..ead6d0db 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -60,13 +60,13 @@ inline u32 select_next_queue_entry(afl_state_t *afl) { } -#define DEBUG_QUEUE 1 +//#define DEBUG_QUEUE 1 double compute_weight(afl_state_t *afl, struct queue_entry *q, double avg_exec_us, double avg_bitmap_size, double avg_top_size, double avg_score) { double weight = 1.0; - +/* if (likely(afl->schedule >= FAST && afl->schedule <= RARE)) { u32 hits = afl->n_fuzz[q->n_fuzz_entry]; @@ -106,11 +106,12 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q, #ifdef DEBUG_QUEUE fprintf(stderr, " after step 6: %.2f (favored)\n", weight); #endif - if (unlikely(!q->was_fuzzed)) { weight *= 2.5; } +*/ + if (unlikely(!q->was_fuzzed)) { weight *= 3; } #ifdef DEBUG_QUEUE fprintf(stderr, " after step 7: %.2f (was_fuzzed)\n", weight); #endif - if (unlikely(q->fs_redundant)) { weight *= 0.75; } + if (unlikely(q->fs_redundant)) { weight = 0.0; } #ifdef DEBUG_QUEUE fprintf(stderr, " after final step: %.2f (fs_redundant)\n", weight); #endif diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index f4e81019..c7c1b422 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -3069,7 +3069,7 @@ stop_fuzzing: if (getenv("AFL_DUMP_QUEUE_ON_EXIT")) { - for (u32 mode = 0; mode < 2; mode++) { + for (u32 mode = 0; mode < 1; mode++) { afl->fuzz_mode = mode; create_alias_table(afl);