aboutsummaryrefslogtreecommitdiff
path: root/custom_mutators
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-02-01 17:16:51 +0100
committervanhauser-thc <vh@thc.org>2023-02-01 17:16:51 +0100
commit91ccbf3f68ab9e6e4bc277f86c3efed666867132 (patch)
treeb35913c4c0710a044060e5e244ec58ba005d1c15 /custom_mutators
parentb5d8d4c866137a8a6bd55225b0eaf723123c46c9 (diff)
downloadafl++-91ccbf3f68ab9e6e4bc277f86c3efed666867132.tar.gz
fix
Diffstat (limited to 'custom_mutators')
-rw-r--r--custom_mutators/autotokens/autotokens.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/custom_mutators/autotokens/autotokens.cpp b/custom_mutators/autotokens/autotokens.cpp
index 0a010f0b..548e1be9 100644
--- a/custom_mutators/autotokens/autotokens.cpp
+++ b/custom_mutators/autotokens/autotokens.cpp
@@ -451,7 +451,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
s = NULL;
DEBUGF(stderr, "cmplog not ascii or only_fav and not favorite\n");
- return 0;
+ return 1;
}
@@ -532,7 +532,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
if (!fp) {
s = NULL;
- return 0;
+ return 1;
} // should not happen
@@ -545,7 +545,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
file_mapping[fn] = structure; // NULL ptr so we don't read the file again
s = NULL;
DEBUGF(stderr, "Too short (%lu) %s\n", len, filename);
- return 0;
+ return 1;
}
@@ -557,7 +557,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
s = NULL;
DEBUGF(stderr, "Too short read %s\n", filename);
- return 0;
+ return 1;
}
@@ -581,7 +581,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
file_mapping[fn] = NULL;
s = NULL;
DEBUGF(stderr, "Not text (%lu) %s\n", len, filename);
- return 0;
+ return 1;
}
@@ -982,7 +982,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
file_mapping[fn] = NULL;
s = NULL;
DEBUGF(stderr, "too few tokens\n");
- return 0;
+ return 1;
}
@@ -1020,15 +1020,13 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
DEBUGF(stderr, "DONE! We have %lu tokens in the structure\n",
structure->size());
- }
-
- else {
+ } else {
if (entry->second == NULL) {
DEBUGF(stderr, "Skipping %s\n", filename);
s = NULL;
- return 0;
+ return 1;
}