about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-01-14 15:01:05 +0100
committervanhauser-thc <vh@thc.org>2022-01-14 15:01:14 +0100
commitf42c0047c8c5a988123f7b66bad4e33234680ebc (patch)
tree273a3ccdbe6e6afdf5c7557606671636587b1019 /src
parent630ba07054892dfbaa477034b01c9eb8e1d7de88 (diff)
downloadafl++-f42c0047c8c5a988123f7b66bad4e33234680ebc.tar.gz
nits
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-queue.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index 9ca89944..fc8a0d55 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -769,8 +769,7 @@ void cull_queue(afl_state_t *afl) {
         afl->top_rated[i]->favored = 1;
         ++afl->queued_favored;
 
-        if (afl->top_rated[i]->fuzz_level == 0 ||
-            !afl->top_rated[i]->was_fuzzed) {
+        if (!afl->top_rated[i]->was_fuzzed) {
 
           ++afl->pending_favored;
 
@@ -936,7 +935,7 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
       n_items = 0;
 
       // Don't modify perf_score for unfuzzed seeds
-      if (q->fuzz_level == 0) break;
+      if (!q->fuzz_level) break;
 
       u32 i;
       for (i = 0; i < afl->queued_items; i++) {
@@ -967,7 +966,7 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
     case FAST:
 
       // Don't modify unfuzzed seeds
-      if (q->fuzz_level == 0) break;
+      if (!q->fuzz_level) break;
 
       switch ((u32)log2(afl->n_fuzz[q->n_fuzz_entry])) {