mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
turn off map size detection if skip_bin_check is set
This commit is contained in:
@ -238,7 +238,7 @@ static void usage(u8 *argv0, int more_help) {
|
||||
"AFL_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
|
||||
"AFL_TARGET_ENV: pass extra environment variables to target\n"
|
||||
"AFL_SHUFFLE_QUEUE: reorder the input queue randomly on startup\n"
|
||||
"AFL_SKIP_BIN_CHECK: skip the check, if the target is an executable\n"
|
||||
"AFL_SKIP_BIN_CHECK: skip afl compatability checks, also disables auto map size\n"
|
||||
"AFL_SKIP_CPUFREQ: do not warn about variable cpu clocking\n"
|
||||
"AFL_SKIP_CRASHES: during initial dry run do not terminate for crashing inputs\n"
|
||||
"AFL_STATSD: enables StatsD metrics collection\n"
|
||||
@ -1718,8 +1718,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
if (!afl->non_instrumented_mode && !afl->fsrv.qemu_mode &&
|
||||
!afl->unicorn_mode && !afl->fsrv.frida_mode &&
|
||||
!((map_size == MAP_SIZE || map_size == 65536) &&
|
||||
afl->afl_env.afl_skip_bin_check)) {
|
||||
!afl->afl_env.afl_skip_bin_check) {
|
||||
|
||||
if (map_size <= DEFAULT_SHMEM_SIZE) {
|
||||
|
||||
@ -1780,8 +1779,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
afl->cmplog_fsrv.map_size < map_size) &&
|
||||
!afl->non_instrumented_mode && !afl->fsrv.qemu_mode &&
|
||||
!afl->fsrv.frida_mode && !afl->unicorn_mode &&
|
||||
!((map_size == MAP_SIZE || map_size == 65536) &&
|
||||
afl->afl_env.afl_skip_bin_check)) {
|
||||
!afl->afl_env.afl_skip_bin_check) {
|
||||
|
||||
afl->cmplog_fsrv.map_size = MAX(map_size, (u32)DEFAULT_SHMEM_SIZE);
|
||||
char vbuf[16];
|
||||
|
Reference in New Issue
Block a user