mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
nyx nits
This commit is contained in:
@ -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. */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user