about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-05-18 12:29:43 +0200
committervanhauser-thc <vh@thc.org>2023-05-18 12:29:43 +0200
commiteec2c38a6891ea317a287498ce1da2f2c8f6f9ff (patch)
treebac87e2328066241ba79b2e4404cf6dee4655c5d
parent401d7617efbd2f38d9132eabfd1b1152abceda52 (diff)
downloadafl++-eec2c38a6891ea317a287498ce1da2f2c8f6f9ff.tar.gz
symqemu fix
-rw-r--r--custom_mutators/symqemu/symqemu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/custom_mutators/symqemu/symqemu.c b/custom_mutators/symqemu/symqemu.c
index e2b07af6..73a1640a 100644
--- a/custom_mutators/symqemu/symqemu.c
+++ b/custom_mutators/symqemu/symqemu.c
@@ -207,9 +207,8 @@ inline u64 get_cur_time(void) {
 
 u32 afl_custom_fuzz_count(my_mutator_t *data, const u8 *buf, size_t buf_size) {
 
-  if (likely((!afl_struct->queue_cur->favored ||
-              afl_struct->queue_cur->was_fuzzed) &&
-             !data->all)) {
+  if (likely((!afl_struct->queue_cur->favored && !data->all) ||
+             afl_struct->queue_cur->was_fuzzed)) {
 
     return 0;