From dba3595c0ae26795a78753ea33ff0c3edf9d6328 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 9 Mar 2020 11:24:10 +0100 Subject: AFL without globals (#220) * moved globals to afl, shm and fsrv * moved argv to afl state, less bugs * fixed unicorn docu * lists everywhere * merged custom mutators * fixed leaks in afl-fuzz --- include/common.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 0d7f4f0b..780e083b 100644 --- a/include/common.h +++ b/include/common.h @@ -28,16 +28,14 @@ #include #include "types.h" +#include "stdbool.h" -extern u8* target_path; /* Path to target binary */ - -void detect_file_args(char** argv, u8* prog_in); +void detect_file_args(char** argv, u8* prog_in, u8 use_stdin); void check_environment_vars(char** env); -char** get_qemu_argv(u8* own_loc, char** argv, int argc); -char** get_wine_argv(u8* own_loc, char** argv, int argc); +char** get_qemu_argv(u8* own_loc, u8 **target_path_p, int argc, char **argv); +char** get_wine_argv(u8* own_loc, u8 **target_path_p, int argc, char **argv); char* get_afl_env(char* env); -#endif /* Get unix time in milliseconds */ @@ -65,3 +63,4 @@ static u64 get_cur_time_us(void) { } +#endif -- cgit 1.4.1