diff options
author | van Hauser <vh@thc.org> | 2020-08-03 13:13:32 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-03 13:13:32 +0200 |
commit | 409e4ae945ab5aeb31b1e3a1497ce5fc65226f07 (patch) | |
tree | fa82a04acca16ea3e088b0d7d3aaec4b01ddf8f9 /src/afl-fuzz-redqueen.c | |
parent | f335c48686c2f4119d1d0b1207f5d5ceb3d4ff04 (diff) | |
download | afl++-409e4ae945ab5aeb31b1e3a1497ce5fc65226f07.tar.gz |
fix expand havoc for ..._only modes
Diffstat (limited to 'src/afl-fuzz-redqueen.c')
-rw-r--r-- | src/afl-fuzz-redqueen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index b58c8537..cb4c78df 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -673,15 +673,15 @@ static u8 rtn_extend_encoding(afl_state_t *afl, struct cmp_header *h, for (i = 0; i < its_len; ++i) { - if (pattern[i] != buf[idx + i] || - o_pattern[i] != orig_buf[idx + i] || *status == 1) { + if (pattern[i] != buf[idx + i] || o_pattern[i] != orig_buf[idx + i] || + *status == 1) { break; } buf[idx + i] = repl[i]; - + if (unlikely(its_fuzz(afl, buf, len, status))) { return 1; } } @@ -727,7 +727,7 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u32 len) { } for (idx = 0; idx < len && fails < 8; ++idx) { - + if (unlikely(rtn_extend_encoding(afl, h, o->v0, o->v1, orig_o->v0, idx, orig_buf, buf, len, &status))) { |