diff options
author | van Hauser <vh@thc.org> | 2020-06-04 02:53:24 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-04 02:53:24 +0200 |
commit | 88e83c7322c66ef3df905f21caf8c07505443d50 (patch) | |
tree | 10666091f562a20a13d20c89cc9ef30c75b370b3 | |
parent | 35ddec7aebaa3fdd454118a31483f9c43e549d6a (diff) | |
download | afl++-88e83c7322c66ef3df905f21caf8c07505443d50.tar.gz |
code format
-rw-r--r-- | examples/persistent_demo/test-instr.c | 2 | ||||
-rw-r--r-- | llvm_mode/afl-llvm-rt.o.c | 3 | ||||
-rw-r--r-- | src/afl-fuzz.c | 5 |
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/persistent_demo/test-instr.c b/examples/persistent_demo/test-instr.c index f7512790..a6188b22 100644 --- a/examples/persistent_demo/test-instr.c +++ b/examples/persistent_demo/test-instr.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) { counter++; #endif - fprintf(stderr, "len: %u\n", len); + // fprintf(stderr, "len: %u\n", len); if (!len) continue; diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c index e37ecfd7..4bca3d37 100644 --- a/llvm_mode/afl-llvm-rt.o.c +++ b/llvm_mode/afl-llvm-rt.o.c @@ -137,8 +137,7 @@ static void __afl_map_shm_fuzz() { } - __afl_fuzz_len = - (u32 *)mmap(0, MAX_FILE, PROT_READ, MAP_SHARED, shm_fd, 0); + __afl_fuzz_len = (u32 *)mmap(0, MAX_FILE, PROT_READ, MAP_SHARED, shm_fd, 0); #else u32 shm_id = atoi(id_str); diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 07e1584b..44b91877 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -246,7 +246,7 @@ int main(int argc, char **argv_orig, char **envp) { u64 prev_queued = 0; u32 sync_interval_cnt = 0, seek_to, show_help = 0, map_size = MAP_SIZE; 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; 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)); 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(); afl_state_init(afl, map_size); + afl->debug = debug; afl_fsrv_init(&afl->fsrv); read_afl_environment(afl, envp); |