diff options
author | Sergej Schumilo <sergej@schumilo.de> | 2024-09-14 03:51:20 +0200 |
---|---|---|
committer | Sergej Schumilo <sergej@schumilo.de> | 2024-09-14 03:51:20 +0200 |
commit | 1d6cd5dd199e0c745aaca05b465286bf63d5ebc2 (patch) | |
tree | c49d1b5d225bee73faa7c3d8ebbc97386c4da898 /include/forkserver.h | |
parent | 7e9abf1bba84e74280168a095bd2a6c5405d1a72 (diff) | |
download | afl++-1d6cd5dd199e0c745aaca05b465286bf63d5ebc2.tar.gz |
fix AFL_AUTORESUME=1 for Nyx mode
Diffstat (limited to 'include/forkserver.h')
-rw-r--r-- | include/forkserver.h | 11 |
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 " \ |