fix expand havoc

This commit is contained in:
van Hauser
2020-09-18 12:19:27 +02:00
parent 1225f3aa70
commit 44c0dc6d96
2 changed files with 9 additions and 7 deletions

View File

@ -35,7 +35,7 @@
#include <sys/mman.h>
#ifndef __HAIKU__
#include <sys/shm.h>
#include <sys/shm.h>
#endif
#include <sys/wait.h>
#include <sys/types.h>

View File

@ -245,8 +245,8 @@ int main(int argc, char **argv_orig, char **envp) {
s32 opt, i;
u64 prev_queued = 0;
u32 sync_interval_cnt = 0, seek_to, show_help = 0, map_size = MAP_SIZE;
u8 * extras_dir[4];
u8 mem_limit_given = 0, exit_1 = 0, debug = 0, extras_dir_cnt = 0;
u8 *extras_dir[4];
u8 mem_limit_given = 0, exit_1 = 0, debug = 0, extras_dir_cnt = 0, have_p = 0;
char **use_argv;
struct timeval tv;
@ -364,6 +364,8 @@ int main(int argc, char **argv_orig, char **envp) {
}
have_p = 1;
break;
case 'e':
@ -1364,7 +1366,7 @@ int main(int argc, char **argv_orig, char **envp) {
afl->expand_havoc = 2;
break;
case 2:
// afl->cycle_schedules = 1;
if (!have_p) afl->schedule = EXPLOIT;
afl->expand_havoc = 3;
break;
case 3: