diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2020-12-29 12:18:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 12:18:02 +0100 |
commit | 871d42e38971e4dc775551f9544d1deb28a34055 (patch) | |
tree | 5bb5a0923304699b76c54a13d1aaa387a93558e8 /src | |
parent | d103e39f5866fa29a13e7e8d4204b1e962100369 (diff) | |
parent | 0922763db1df494c1547db296934a1d66286319f (diff) | |
download | afl++-871d42e38971e4dc775551f9544d1deb28a34055.tar.gz |
Merge pull request #665 from mboehme/patch-1
Handle disabled seeds properly in distribution-based schedule
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-queue.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 5dc2d70b..d4b35ad2 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -112,12 +112,8 @@ void create_alias_table(afl_state_t *afl) { struct queue_entry *q = afl->queue_buf[i]; - if (!q->disabled) { - - q->weight = compute_weight(afl, q, avg_exec_us, avg_bitmap_size); - q->perf_score = calculate_score(afl, q); - - } + q->weight = q->disabled ? 0 : compute_weight(afl, q, avg_exec_us, avg_bitmap_size); + q->perf_score = q->disabled ? 0 : calculate_score(afl, q); sum += q->weight; |