diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-14 01:33:03 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-14 01:33:03 +0200 |
commit | d1bc0207cc6e579fe914dcbb0b70653783b64598 (patch) | |
tree | 078c5bdb193598ab97185c2c0cad5812e00a0152 /include/afl-fuzz.h | |
parent | 69f8c62955ecd494fb21c348511b2b7a0e012274 (diff) | |
download | afl++-d1bc0207cc6e579fe914dcbb0b70653783b64598.tar.gz |
no longer using alloc for autodict
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index cd6f7173..034e8de2 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -172,6 +172,14 @@ struct extra_data { }; +struct auto_extra_data { + + u8 data[MAX_AUTO_EXTRA]; /* Dictionary token data */ + u32 len; /* Dictionary token length */ + u32 hit_cnt; /* Use count in the corpus */ + +}; + /* Fuzzing stages */ enum { @@ -571,8 +579,8 @@ typedef struct afl_state { struct extra_data *extras; /* Extra tokens to fuzz with */ u32 extras_cnt; /* Total number of tokens read */ - struct extra_data *a_extras; /* Automatically selected extras */ - u32 a_extras_cnt; /* Total number of tokens available */ + struct auto_extra_data a_extras[MAX_AUTO_EXTRAS]; /* Automatically selected extras */ + u32 a_extras_cnt; /* Total number of tokens available */ /* afl_postprocess API - Now supported via custom mutators */ |