diff options
author | Marcel Böhme <mboehme@users.noreply.github.com> | 2020-12-29 14:57:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 14:57:05 +1100 |
commit | 0922763db1df494c1547db296934a1d66286319f (patch) | |
tree | 5bb5a0923304699b76c54a13d1aaa387a93558e8 /src | |
parent | d103e39f5866fa29a13e7e8d4204b1e962100369 (diff) | |
download | afl++-0922763db1df494c1547db296934a1d66286319f.tar.gz |
Update afl-fuzz-queue.c
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; |