diff options
author | van Hauser <vh@thc.org> | 2022-01-21 08:51:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 08:51:29 +0100 |
commit | 5933e787f90819b467658b63977b1dc472acad29 (patch) | |
tree | 2fec687da836de4c4604ddefa6bda579a256c3c6 /src/afl-fuzz.c | |
parent | a9d549ca073ca3fc37b63c1fa454c575bba174b9 (diff) | |
parent | 6ce736aa913363647760d088ef0cb3610a765ff4 (diff) | |
download | afl++-5933e787f90819b467658b63977b1dc472acad29.tar.gz |
Merge pull request #1300 from schumilo/dev
add Nyx LTO support (and some other improvements)
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 1edf82f4..50874f47 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -404,6 +404,12 @@ nyx_plugin_handler_t *afl_load_libnyx_plugin(u8 *libnyx_binary) { plugin->nyx_new = dlsym(handle, "nyx_new"); if (plugin->nyx_new == NULL) { goto fail; } + plugin->nyx_new_parent = dlsym(handle, "nyx_new_parent"); + if (plugin->nyx_new_parent == NULL) { goto fail; } + + plugin->nyx_new_child = dlsym(handle, "nyx_new_child"); + if (plugin->nyx_new_child == NULL) { goto fail; } + plugin->nyx_shutdown = dlsym(handle, "nyx_shutdown"); if (plugin->nyx_shutdown == NULL) { goto fail; } @@ -1340,7 +1346,8 @@ int main(int argc, char **argv_orig, char **envp) { "0)"); } - + + afl->fsrv.nyx_parent = true; afl->fsrv.nyx_id = 0; } |