diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-26 21:30:08 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-26 21:30:08 +0200 |
commit | 245e91eb27f1572e00c6664477d588c540c30ed6 (patch) | |
tree | a4cc2ed30ce8326c1e77e393216de64926a66264 /src | |
parent | b4e328803c4e61c81fdf0e0412f013fcf0e72e0d (diff) | |
download | afl++-245e91eb27f1572e00c6664477d588c540c30ed6.tar.gz |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-redqueen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index 6002703e..800a0753 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -28,7 +28,7 @@ #include "afl-fuzz.h" #include "cmplog.h" -#define VARIANT 0 +#define VARIANT 4 //#define _DEBUG //#define CMPLOG_INTROSPECTION @@ -1861,8 +1861,8 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf, if (o->v1 != orig_o->v1) { same1 = 8; } if (o->v0 != o->v1) { same2 = 8; } if (orig_o->v0 != orig_o->v1) { same3 = 8; } - if (check_if_text_buf((u8 *)o->v0, hshape) < hshape) same0 += 2; - if (check_if_text_buf((u8 *)o->v1, hshape) < hshape) same1 += 2; + if (check_if_text_buf((u8 *)&o->v0, hshape) < hshape) same0 += 2; + if (check_if_text_buf((u8 *)&o->v1, hshape) < hshape) same1 += 2; if (!same2 && !same3) { |