mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
code format
This commit is contained in:
@ -50,7 +50,7 @@ int main(int argc, char **argv) {
|
|||||||
counter++;
|
counter++;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(stderr, "len: %u\n", len);
|
// fprintf(stderr, "len: %u\n", len);
|
||||||
|
|
||||||
if (!len) continue;
|
if (!len) continue;
|
||||||
|
|
||||||
|
@ -137,8 +137,7 @@ static void __afl_map_shm_fuzz() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__afl_fuzz_len =
|
__afl_fuzz_len = (u32 *)mmap(0, MAX_FILE, PROT_READ, MAP_SHARED, shm_fd, 0);
|
||||||
(u32 *)mmap(0, MAX_FILE, PROT_READ, MAP_SHARED, shm_fd, 0);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
u32 shm_id = atoi(id_str);
|
u32 shm_id = atoi(id_str);
|
||||||
|
@ -246,7 +246,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
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 = 0;
|
u8 * extras_dir = 0;
|
||||||
u8 mem_limit_given = 0, exit_1 = 0;
|
u8 mem_limit_given = 0, exit_1 = 0, debug = 0;
|
||||||
char **use_argv;
|
char **use_argv;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
@ -257,10 +257,11 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
afl_state_t *afl = calloc(1, sizeof(afl_state_t));
|
afl_state_t *afl = calloc(1, sizeof(afl_state_t));
|
||||||
if (!afl) { FATAL("Could not create afl state"); }
|
if (!afl) { FATAL("Could not create afl state"); }
|
||||||
|
|
||||||
if (get_afl_env("AFL_DEBUG")) { afl->debug = 1; }
|
if (get_afl_env("AFL_DEBUG")) { debug = afl->debug = 1; }
|
||||||
|
|
||||||
map_size = get_map_size();
|
map_size = get_map_size();
|
||||||
afl_state_init(afl, map_size);
|
afl_state_init(afl, map_size);
|
||||||
|
afl->debug = debug;
|
||||||
afl_fsrv_init(&afl->fsrv);
|
afl_fsrv_init(&afl->fsrv);
|
||||||
|
|
||||||
read_afl_environment(afl, envp);
|
read_afl_environment(afl, envp);
|
||||||
|
Reference in New Issue
Block a user