diff options
author | vanhauser-thc <vh@thc.org> | 2024-09-26 14:42:59 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-09-26 14:42:59 +0200 |
commit | 55b67f1372b399b0b2ebd3e7aad7b7e130b2d00b (patch) | |
tree | ad348c39e351636f5da2c33c85da8f0504644ced /src | |
parent | 2e6c74f9b9d3bc70ef9474eb08592b9cd151d3c7 (diff) | |
download | afl++-55b67f1372b399b0b2ebd3e7aad7b7e130b2d00b.tar.gz |
fix postprocess for calibration
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-run.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 4ce17eb2..c2e29fb3 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -487,6 +487,9 @@ 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; + /* we need a dummy run if this is LTO + cmplog */ if (unlikely(afl->shm.cmplog_mode)) { @@ -661,6 +664,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; |