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 | |
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')
-rw-r--r-- | src/afl-cc.c | 2 | ||||
-rw-r--r-- | src/afl-fuzz-redqueen.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 959c9a6f..d41f79a2 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -1875,8 +1875,6 @@ int main(int argc, char **argv, char **envp) { edit_params(argc, argv, envp); - if (lto_mode) { setenv("_AFL_LTO_COMPILE", "1", 1); } - if (debug) { DEBUGF("cd '%s';", getthecwd()); 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"); |