mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
fix postprocess for calibration
This commit is contained in:
@ -15,6 +15,7 @@
|
|||||||
function after the target has been restarted.
|
function after the target has been restarted.
|
||||||
- because of bad math and undefined behaviour fixes we have to change
|
- because of bad math and undefined behaviour fixes we have to change
|
||||||
the CMPLOG map. **YOU NEED TO RECOMPILE CMPLOG TARGETS**
|
the CMPLOG map. **YOU NEED TO RECOMPILE CMPLOG TARGETS**
|
||||||
|
- fixed custom_post_process for calibration
|
||||||
- frida_mode:
|
- frida_mode:
|
||||||
- AFL_FRIDA_PERSISTENT_ADDR can now be be any reachable address not just
|
- AFL_FRIDA_PERSISTENT_ADDR can now be be any reachable address not just
|
||||||
a function entry
|
a function entry
|
||||||
|
@ -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 */
|
/* we need a dummy run if this is LTO + cmplog */
|
||||||
if (unlikely(afl->shm.cmplog_mode)) {
|
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:
|
abort_calibration:
|
||||||
|
|
||||||
|
afl->afl_env.afl_post_process_keep_original =
|
||||||
|
saved_afl_post_process_keep_original;
|
||||||
|
|
||||||
if (new_bits == 2 && !q->has_new_cov) {
|
if (new_bits == 2 && !q->has_new_cov) {
|
||||||
|
|
||||||
q->has_new_cov = 1;
|
q->has_new_cov = 1;
|
||||||
|
Reference in New Issue
Block a user