about summary refs log tree commit diff
path: root/src/afl-fuzz-redqueen.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-02-17 17:43:11 +0100
committerGitHub <noreply@github.com>2021-02-17 17:43:11 +0100
commit857229654e942000021dce926483586b038082d2 (patch)
tree1a4d19a2246bbd75d861c6b91e04ca9b2178fa60 /src/afl-fuzz-redqueen.c
parentd999725de217a0adf4f936954c418ad8c8c3da2a (diff)
parent4c47b242eb976b8518ab8884733d02465f02d90a (diff)
downloadafl++-857229654e942000021dce926483586b038082d2.tar.gz
Merge pull request #750 from AFLplusplus/dev
Push to stable
Diffstat (limited to 'src/afl-fuzz-redqueen.c')
-rw-r--r--src/afl-fuzz-redqueen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index cf65d3c1..bbe35fe5 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -421,8 +421,9 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len,
 
   if (taint) {
 
-    if (len / positions == 1 && positions > CMPLOG_POSITIONS_MAX &&
-        afl->active_paths / afl->colorize_success > CMPLOG_CORPUS_PERCENT) {
+    if (afl->colorize_success &&
+        (len / positions == 1 && positions > CMPLOG_POSITIONS_MAX &&
+         afl->active_paths / afl->colorize_success > CMPLOG_CORPUS_PERCENT)) {
 
 #ifdef _DEBUG
       fprintf(stderr, "Colorization unsatisfactory\n");