aboutsummaryrefslogtreecommitdiff
path: root/include/forkserver.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-09-14 16:02:21 +0200
committerGitHub <noreply@github.com>2024-09-14 16:02:21 +0200
commit8531928fa4333eddd958899b6ccb714db33573f6 (patch)
tree315828e77369e94a2c9f9a9a86a06693674e7635 /include/forkserver.h
parent804c98a1e893b40209b377d31b55efec4c7c824b (diff)
parent1d6cd5dd199e0c745aaca05b465286bf63d5ebc2 (diff)
downloadafl++-8531928fa4333eddd958899b6ccb714db33573f6.tar.gz
Merge pull request #2207 from schumilo/dev
fix AFL_AUTORESUME=1 for Nyx mode
Diffstat (limited to 'include/forkserver.h')
-rw-r--r--include/forkserver.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/forkserver.h b/include/forkserver.h
index 6c649528..db1832c4 100644
--- a/include/forkserver.h
+++ b/include/forkserver.h
@@ -89,11 +89,14 @@ typedef struct {
bool (*nyx_config_set_aux_buffer_size)(void *config,
uint32_t aux_buffer_size);
+ uint64_t (*nyx_get_target_hash64)(void *config);
+
+ void (*nyx_config_free)(void *config);
+
} nyx_plugin_handler_t;
/* Imports helper functions to enable Nyx mode (Linux only )*/
nyx_plugin_handler_t *afl_load_libnyx_plugin(u8 *libnyx_binary);
-
#endif
typedef struct afl_forkserver {
@@ -204,6 +207,7 @@ typedef struct afl_forkserver {
bool nyx_use_tmp_workdir;
char *nyx_tmp_workdir_path;
s32 nyx_log_fd;
+ u64 nyx_target_hash64;
#endif
#ifdef __AFL_CODE_COVERAGE
@@ -241,6 +245,11 @@ void afl_fsrv_killall(void);
void afl_fsrv_deinit(afl_forkserver_t *fsrv);
void afl_fsrv_kill(afl_forkserver_t *fsrv);
+#ifdef __linux__
+void nyx_load_target_hash(afl_forkserver_t *fsrv);
+#endif
+
+
#ifdef __APPLE__
#define MSG_FORK_ON_APPLE \
" - On MacOS X, the semantics of fork() syscalls are non-standard and " \