diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-09-18 10:22:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 10:22:55 +0200 |
commit | b55ea6409dfcadf3c43244fb8e72ea660fd4fcc2 (patch) | |
tree | 8c2a81fde3312449b18cff1ab6ce27432db6e3e2 /include | |
parent | 68b3849d51e94e394334305b8ab7e4f613a8bbb9 (diff) | |
parent | 5e56d3bf368df07d964de769aa5142ad98536330 (diff) | |
download | afl++-b55ea6409dfcadf3c43244fb8e72ea660fd4fcc2.tar.gz |
Merge pull request #60 from vanhauser-thc/wine_mode
Wine mode
Diffstat (limited to 'include')
-rw-r--r-- | include/afl-fuzz.h | 3 | ||||
-rw-r--r-- | include/common.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index f6874785..9536e06a 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -241,7 +241,6 @@ extern u8 *in_dir, /* Input directory with test cases */ *file_extension, /* File extension */ *orig_cmdline, /* Original command line */ *doc_path, /* Path to documentation dir */ - *target_path, /* Path to target binary */ *out_file; /* File to fuzz, if any */ extern u32 exec_tmout; /* Configurable exec timeout (ms) */ @@ -294,6 +293,7 @@ extern u8 skip_deterministic, /* Skip deterministic stages? */ bitmap_changed, /* Time to update bitmap? */ qemu_mode, /* Running in QEMU mode? */ unicorn_mode, /* Running in Unicorn mode? */ + use_wine, /* Use WINE with QEMU mode */ skip_requested, /* Skip request, via SIGUSR1 */ run_over10m, /* Run time over 10 minutes? */ persistent_mode, /* Running in persistent mode? */ @@ -612,6 +612,7 @@ void fix_up_banner(u8*); void check_if_tty(void); void setup_signal_handlers(void); char** get_qemu_argv(u8*, char**, int); +char** get_wine_argv(u8*, char**, int); void save_cmdline(u32, char**); /**** Inline routines ****/ diff --git a/include/common.h b/include/common.h index 905830b5..c370044e 100644 --- a/include/common.h +++ b/include/common.h @@ -27,6 +27,11 @@ #define __AFLCOMMON_H #include "types.h" +extern u8 *target_path; /* Path to target binary */ + void detect_file_args(char **argv, u8 *prog_in); + +char** get_qemu_argv(u8* own_loc, char** argv, int argc); +char** get_wine_argv(u8* own_loc, char** argv, int argc); #endif |