mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
fix expand havoc
This commit is contained in:
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#ifndef __HAIKU__
|
#ifndef __HAIKU__
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -242,11 +242,11 @@ static int stricmp(char const *a, char const *b) {
|
|||||||
|
|
||||||
int main(int argc, char **argv_orig, char **envp) {
|
int main(int argc, char **argv_orig, char **envp) {
|
||||||
|
|
||||||
s32 opt, i;
|
s32 opt, i;
|
||||||
u64 prev_queued = 0;
|
u64 prev_queued = 0;
|
||||||
u32 sync_interval_cnt = 0, seek_to, show_help = 0, map_size = MAP_SIZE;
|
u32 sync_interval_cnt = 0, seek_to, show_help = 0, map_size = MAP_SIZE;
|
||||||
u8 * extras_dir[4];
|
u8 *extras_dir[4];
|
||||||
u8 mem_limit_given = 0, exit_1 = 0, debug = 0, extras_dir_cnt = 0;
|
u8 mem_limit_given = 0, exit_1 = 0, debug = 0, extras_dir_cnt = 0, have_p = 0;
|
||||||
char **use_argv;
|
char **use_argv;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
@ -364,6 +364,8 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
have_p = 1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'e':
|
case 'e':
|
||||||
@ -1364,7 +1366,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
afl->expand_havoc = 2;
|
afl->expand_havoc = 2;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// afl->cycle_schedules = 1;
|
if (!have_p) afl->schedule = EXPLOIT;
|
||||||
afl->expand_havoc = 3;
|
afl->expand_havoc = 3;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
Reference in New Issue
Block a user