diff options
author | van Hauser <vh@thc.org> | 2021-01-29 18:25:25 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-01-29 18:25:25 +0100 |
commit | debd832f36b142e1b0b1bab8a6966848a51878f8 (patch) | |
tree | 63518b4b0f87077bda48aab9bb5e12fdd4ac1fc9 | |
parent | 66c290f804636de19017ecc3c9ece4a7af9eed28 (diff) | |
download | afl++-debd832f36b142e1b0b1bab8a6966848a51878f8.tar.gz |
32bit fix
-rw-r--r-- | src/afl-fuzz-redqueen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index 1ef84046..fc620781 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -1700,12 +1700,15 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf, if (afl->pass_stats[key].total == 0) { +#ifdef WORD_SIZE_64 if (unlikely(is_n)) { try_to_add_to_dictN(afl, s128_v0, SHAPE_BYTES(h->shape)); try_to_add_to_dictN(afl, s128_v1, SHAPE_BYTES(h->shape)); - } else { + } else +#endif + { try_to_add_to_dict(afl, o->v0, SHAPE_BYTES(h->shape)); try_to_add_to_dict(afl, o->v1, SHAPE_BYTES(h->shape)); |