diff options
author | van Hauser <vh@thc.org> | 2023-08-13 08:13:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-13 08:13:09 +0000 |
commit | f838509d4989ff85ac7fef79ce60ae7cf8e1960b (patch) | |
tree | ca3ada11f64aa073334b6a063cde772d4c98dfac /src | |
parent | 8823f22a9c87123c1bfcc5bff10044de4c7a4a1f (diff) | |
parent | 030799638ddb7bd42d97fea81951c7cb246e263b (diff) | |
download | afl++-f838509d4989ff85ac7fef79ce60ae7cf8e1960b.tar.gz |
Merge pull request #1836 from chinggg/fix-fav_factor
Remove redundant comparison of `fav_factor` in `update_bitmap_score`
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-queue.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 48fd33ec..20973f51 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -746,30 +746,9 @@ void update_bitmap_score(afl_state_t *afl, struct queue_entry *q) { } - if (fuzz_p2 > top_rated_fuzz_p2) { + if (fuzz_p2 > top_rated_fuzz_p2) continue; - continue; - - } else if (fuzz_p2 == top_rated_fuzz_p2) { - - if (fav_factor > top_rated_fav_factor) { continue; } - - } - - if (unlikely(afl->schedule >= RARE) || unlikely(afl->fixed_seed)) { - - if (fav_factor > afl->top_rated[i]->len << 2) { continue; } - - } else { - - if (fav_factor > - afl->top_rated[i]->exec_us * afl->top_rated[i]->len) { - - continue; - - } - - } + if (fav_factor > top_rated_fav_factor) continue; /* Looks like we're going to win. Decrease ref count for the previous winner, discard its afl->fsrv.trace_bits[] if necessary. */ |