mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
To support AFL instrumentation, add default settings.
This commit is contained in:
parent
6e37f9b237
commit
25945d51a4
@ -1338,6 +1338,10 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
|||||||
|
|
||||||
fsrv->map_size = tmp_map_size;
|
fsrv->map_size = tmp_map_size;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
fsrv->real_map_size = fsrv->map_size = MAP_SIZE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status & FS_OPT_AUTODICT) == FS_OPT_AUTODICT) {
|
if ((status & FS_OPT_AUTODICT) == FS_OPT_AUTODICT) {
|
||||||
@ -1444,6 +1448,11 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// The binary is most likely instrumented using AFL's tool, and we will set map_size to MAP_SIZE.
|
||||||
|
fsrv->real_map_size = fsrv->map_size = MAP_SIZE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user