diff options
author | vanhauser-thc <vh@thc.org> | 2023-02-06 16:38:46 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-02-06 16:38:52 +0100 |
commit | dbfa23b40a6bdd1b8affc3920c68f11a6e63b231 (patch) | |
tree | 138318f83d3fbd79c0d26143a2a23bae26f85813 | |
parent | 1a9f96858b5c52404a7832165d6dc148759cb29a (diff) | |
download | afl++-dbfa23b40a6bdd1b8affc3920c68f11a6e63b231.tar.gz |
fixes
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 10 | ||||
-rw-r--r-- | src/afl-fuzz-one.c | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index b1ce4427..9871d7f4 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -1518,9 +1518,13 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) { _is_sancov = 1; - __afl_auto_first(); - __afl_auto_second(); - __afl_auto_early(); + if (!getenv("AFL_DUMP_MAP_SIZE")) { + + __afl_auto_first(); + __afl_auto_second(); + __afl_auto_early(); + + } if (__afl_debug) { diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index 97855607..6367f597 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -5798,7 +5798,7 @@ void pso_updating(afl_state_t *afl) { u8 fuzz_one(afl_state_t *afl) { - int key_val_lv_1 = 0, key_val_lv_2 = 0; + int key_val_lv_1 = -1, key_val_lv_2 = -1; #ifdef _AFL_DOCUMENT_MUTATIONS @@ -5840,7 +5840,7 @@ u8 fuzz_one(afl_state_t *afl) { } - return (key_val_lv_1 | key_val_lv_2); + return (key_val_lv_1 == 0 || key_val_lv_2 == 0 ? 0 : 1 ); } |