diff options
author | van Hauser <vh@thc.org> | 2024-10-07 10:12:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 10:12:51 +0200 |
commit | c1e40c5fb7de40dc5f598c609c907ea21e5a078a (patch) | |
tree | 1e9da5807fa20692820bf9792b4a42f9731aeeff /src/afl-fuzz-run.c | |
parent | d21fb1a558b25c4f46692fa999c0028dfe0eecc0 (diff) | |
parent | d6a2edb42a680b999256d5b78082975713973db7 (diff) | |
download | afl++-c1e40c5fb7de40dc5f598c609c907ea21e5a078a.tar.gz |
Merge pull request #2220 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 4ce17eb2..a3787e5c 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -487,6 +487,10 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, } + u8 saved_afl_post_process_keep_original = + afl->afl_env.afl_post_process_keep_original; + afl->afl_env.afl_post_process_keep_original = 1; + /* we need a dummy run if this is LTO + cmplog */ if (unlikely(afl->shm.cmplog_mode)) { @@ -661,6 +665,9 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, abort_calibration: + afl->afl_env.afl_post_process_keep_original = + saved_afl_post_process_keep_original; + if (new_bits == 2 && !q->has_new_cov) { q->has_new_cov = 1; |