diff options
author | vanhauser-thc <vh@thc.org> | 2021-12-28 17:25:46 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-12-28 17:25:46 +0100 |
commit | f511ebd125e968f9d49bb38cea18d7c1596db10b (patch) | |
tree | 42225efb2c65f3c1c53158d62261ff2979178ae2 /src | |
parent | 83bf876255f854555d8b98560112c094ed8d693e (diff) | |
download | afl++-f511ebd125e968f9d49bb38cea18d7c1596db10b.tar.gz |
nyx nits
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-forkserver.c | 3 | ||||
-rw-r--r-- | src/afl-fuzz.c | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 6604de3a..16f684be 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -1354,11 +1354,12 @@ fsrv_run_result_t afl_fsrv_run_target(afl_forkserver_t *fsrv, u32 timeout, #ifdef __linux__ if(!fsrv->nyx_mode){ memset(fsrv->trace_bits, 0, fsrv->map_size); + MEM_BARRIER(); } #else memset(fsrv->trace_bits, 0, fsrv->map_size); -#endif MEM_BARRIER(); +#endif /* we have the fork server (or faux server) up and running First, tell it if the previous run timed out. */ diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 7ab2c60e..5b568aa4 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -124,8 +124,10 @@ static void usage(u8 *argv0, int more_help) { " -W - use qemu-based instrumentation with Wine (Wine " "mode)\n" #endif - " -X - use VM fuzzing (NYX mode)\n" - " -Y - use VM fuzzing (NYX mode - Multiprocessing)\n" +#if defined(__linux__) + " -X - use VM fuzzing (NYX mode - standalone mode)\n" + " -Y - use VM fuzzing (NYX mode - multiple instances mode)\n" +#endif "\n" "Mutator settings:\n" @@ -934,7 +936,7 @@ int main(int argc, char **argv_orig, char **envp) { case 'Y': /* NYX distributed mode */ if (afl->fsrv.nyx_mode) { - FATAL("Multiple -X options not supported"); + FATAL("Multiple -Y options not supported"); } afl->fsrv.nyx_mode = 1; @@ -1345,7 +1347,7 @@ int main(int argc, char **argv_orig, char **envp) { if (!afl->fsrv.nyx_standalone){ if (afl->is_main_node){ if(strncmp("0", afl->sync_id, strlen("0") != 0)){ - FATAL("afl->sync_id has to be 0 in Nyx mode (-M 0)"); + FATAL("for Nyx -Y mode, the Main (-M) parameter has to be set to 0 (-M 0)"); } afl->fsrv.nyx_id = 0; } @@ -1354,7 +1356,7 @@ int main(int argc, char **argv_orig, char **envp) { long nyx_id = strtol(afl->sync_id, NULL, 10); if (nyx_id == 0 || nyx_id == LONG_MAX){ - FATAL("afl->sync_id has to be numberic and >= 1 (-S id)"); + FATAL("for Nyx -Y mode, the Secondary (-S) parameter has to be a numeric value and >= 1 (e.g. -S 1)"); } afl->fsrv.nyx_id = nyx_id; } |