diff options
author | van Hauser <vh@thc.org> | 2021-01-17 17:03:08 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-01-17 17:03:08 +0100 |
commit | 8951f906230ee9b7b2c27d92281d9da81302c694 (patch) | |
tree | 59d437320bbe665aebc28f8029763d925570b934 | |
parent | 6b375489ed5dced4d0f55c334382f418a12e825a (diff) | |
download | afl++-8951f906230ee9b7b2c27d92281d9da81302c694.tar.gz |
no cmplog when no taint is found
-rw-r--r-- | src/afl-fuzz-redqueen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index 28d34ea6..2cc578bb 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -1855,8 +1855,11 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len) { // no taint? still try, create a dummy to prevent again colorization if (!taint) { - taint = ck_alloc(sizeof(struct tainted)); - taint->len = len; +#ifdef _DEBUG + fprintf(stderr, "TAINT FAILED\n"); +#endif + afl->queue_cur->colorized = CMPLOG_LVL_MAX; + return 0; } |