diff options
author | van Hauser <vh@thc.org> | 2020-06-29 18:35:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 18:35:51 +0200 |
commit | 6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7 (patch) | |
tree | 4c762f1e2cfb4a8741c08b5b60d07c2ae8eee860 /include/afl-fuzz.h | |
parent | 07648f75ea5ef8f03a92db0c7566da8c229dc27b (diff) | |
parent | 76a2d9b59b23873c8a6d174a2f3c48eba60712fb (diff) | |
download | afl++-6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7.tar.gz |
Merge branch 'text_inputs' into dev
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index c9f84c61..ca785e47 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -139,7 +139,8 @@ struct queue_entry { var_behavior, /* Variable behavior? */ favored, /* Currently favored? */ fs_redundant, /* Marked as redundant in the fs? */ - fully_colorized; /* Do not run redqueen stage again */ + fully_colorized, /* Do not run redqueen stage again */ + is_ascii; /* Is the input just ascii text? */ u32 bitmap_size, /* Number of bits set in bitmap */ fuzz_level; /* Number of fuzzing iterations */ @@ -947,7 +948,7 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len, u64 exec_cksum); /* xoshiro256** */ -uint64_t rand_next(afl_state_t *afl); +uint32_t rand_next(afl_state_t *afl); /**** Inline routines ****/ @@ -967,7 +968,7 @@ static inline u32 rand_below(afl_state_t *afl, u32 limit) { } - return rand_next(afl) % limit; + return (rand_next(afl) % limit); } |