about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2021-06-01 11:06:42 +0200
committerDominik Maier <domenukk@gmail.com>2021-06-01 11:06:55 +0200
commit7e54c8d7f6ad7e07c5c442d2e92eed3da7c4add0 (patch)
tree84b75e1d089be6a98829efa90646a042e3d2d390 /src
parent8017f88614d057cee5cf11fd48244d012be77c5e (diff)
downloadafl++-7e54c8d7f6ad7e07c5c442d2e92eed3da7c4add0.tar.gz
fixed potential diff by 0
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index cf1e5ea5..22fd0621 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -438,7 +438,7 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len,
   if (taint) {
 
     if (afl->colorize_success && afl->cmplog_lvl < 3 &&
-        (len / positions == 1 && positions > CMPLOG_POSITIONS_MAX &&
+        (positions > CMPLOG_POSITIONS_MAX && len / positions == 1 &&
          afl->active_paths / afl->colorize_success > CMPLOG_CORPUS_PERCENT)) {
 
 #ifdef _DEBUG