diff options
author | Dominik Maier <dmnk@google.com> | 2023-07-30 21:59:57 +0000 |
---|---|---|
committer | Dominik Maier <dmnk@google.com> | 2023-07-30 21:59:57 +0000 |
commit | d0782a7f03a23f8323772d189e5b66a4eb086afd (patch) | |
tree | 1ebec2ef7c371a1e0322e1e86989193bebfac894 /include/afl-mutations.h | |
parent | 168ade3b70077ec6a24df9fc594e3b8c1db89bd6 (diff) | |
download | afl++-d0782a7f03a23f8323772d189e5b66a4eb086afd.tar.gz |
Various fixes for warnings, extends #1818
Diffstat (limited to 'include/afl-mutations.h')
-rw-r--r-- | include/afl-mutations.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/afl-mutations.h b/include/afl-mutations.h index 5dde4473..1806790e 100644 --- a/include/afl-mutations.h +++ b/include/afl-mutations.h @@ -25,13 +25,14 @@ u32 max_len - the maximum size the mutated buffer may grow to */ -#ifndef _ANDROID_ASHMEM_H - #define AFL_MUTATIONS_H +#ifndef AFL_MUTATIONS_H +#define AFL_MUTATIONS_H - #include <stdbool.h> - #include "afl-fuzz.h" +#include <stdbool.h> +#include <inttypes.h> +#include "afl-fuzz.h" - #define MUT_STRATEGY_ARRAY_SIZE 256 +#define MUT_STRATEGY_ARRAY_SIZE 256 enum { @@ -2456,7 +2457,7 @@ inline u32 afl_mutate(afl_state_t *afl, u8 *buf, u32 len, u32 steps, } char buf[20]; - snprintf(buf, sizeof(buf), "%lld", val); + snprintf(buf, sizeof(buf), "%" PRId64, val); u32 old_len = off2 - off; u32 new_len = strlen(buf); |