aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-02-15 08:46:19 +0100
committerhexcoder- <heiko@hexco.de>2021-02-15 08:46:19 +0100
commitf31d8b8401f7bebb75a19e27c21143c31ad33448 (patch)
tree4cb033ee87563fa284eaa446efe7126640c778b0 /src
parent389e348826fc3cb610eed5a47a3f43952b6e1507 (diff)
downloadafl++-f31d8b8401f7bebb75a19e27c21143c31ad33448.tar.gz
redqueen fix compiler warnings for 32 bit
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index 3ce4148d..527feef5 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -1498,11 +1498,12 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
struct cmp_header *h = &afl->shm.cmp_map->headers[key];
struct tainted * t;
u32 i, j, idx, taint_len, loggeds;
- u32 have_taint = 1, is_n = 0;
+ u32 have_taint = 1;
u8 status = 0, found_one = 0;
/* loop cmps are useless, detect and ignore them */
#ifdef WORD_SIZE_64
+ u32 is_n = 0;
u128 s128_v0 = 0, s128_v1 = 0, orig_s128_v0 = 0, orig_s128_v1 = 0;
#endif
u64 s_v0, s_v1;
@@ -1520,6 +1521,7 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
}
+#ifdef WORD_SIZE_64
switch (SHAPE_BYTES(h->shape)) {
case 1:
@@ -1531,6 +1533,7 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
is_n = 1;
}
+#endif
for (i = 0; i < loggeds; ++i) {
@@ -2606,8 +2609,8 @@ exit_its:
}
#else
- u32 *v = (u64 *)afl->virgin_bits;
- u32 *s = (u64 *)virgin_save;
+ u32 *v = (u32 *)afl->virgin_bits;
+ u32 *s = (u32 *)virgin_save;
u32 i;
for (i = 0; i < (afl->shm.map_size >> 2); i++) {