mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
debug
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user