diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-30 22:40:09 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-30 22:40:09 +0100 |
commit | 95a98fb3e805d94a3db82d5da21e9a00a79dbdf2 (patch) | |
tree | 4de4f17f898a4f0632098c9902614217fa2e53eb /include/afl-fuzz.h | |
parent | b8bad5a2273b0cddd0244a7f37c20150a08af475 (diff) | |
download | afl++-95a98fb3e805d94a3db82d5da21e9a00a79dbdf2.tar.gz |
cmplog runtime for LLVM
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index ce418931..cd53c703 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -452,6 +452,11 @@ extern u32 a_extras_cnt; /* Total number of tokens available */ u8* (*post_handler)(u8* buf, u32* len); +/* CmpLog */ + +extern u8* cmplog_binary; +extern s32 cmplog_forksrv_pid; + /* hooks for the custom mutator function */ /** * Perform custom mutations on a given input @@ -647,12 +652,13 @@ char** get_qemu_argv(u8*, char**, int); char** get_wine_argv(u8*, char**, int); void save_cmdline(u32, char**); -/* RedQueen */ - -extern u8* cmplog_binary; -extern s32 cmplog_forksrv_pid; +/* CmpLog */ void init_cmplog_forkserver(char** argv); +u8 common_fuzz_cmplog_stuff(char** argv, u8* out_buf, u32 len); + +/* RedQueen */ + u8 input_to_state_stage(char** argv, u8* orig_buf, u8* buf, u32 len, u32 exec_cksum); |