diff options
author | van Hauser <vh@thc.org> | 2021-02-17 17:43:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 17:43:11 +0100 |
commit | 857229654e942000021dce926483586b038082d2 (patch) | |
tree | 1a4d19a2246bbd75d861c6b91e04ca9b2178fa60 /src/afl-fuzz-redqueen.c | |
parent | d999725de217a0adf4f936954c418ad8c8c3da2a (diff) | |
parent | 4c47b242eb976b8518ab8884733d02465f02d90a (diff) | |
download | afl++-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.c | 5 |
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"); |