aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-17 16:13:41 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-17 16:13:41 +0200
commite2dfac08c0925295507f7d62ca3d4300cfe9e021 (patch)
tree96a218e7fff00d6e39378eba8bf6f2e5015f42a9 /include
parentc8173eb9ece9cf3bcc499347929405913d8431b3 (diff)
downloadafl++-e2dfac08c0925295507f7d62ca3d4300cfe9e021.tar.gz
wine mode first commit
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h3
-rw-r--r--include/common.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index ae15b28f..3f3d7bc7 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