diff options
author | vanhauser-thc <vh@thc.org> | 2021-06-14 22:59:48 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-06-14 22:59:48 +0200 |
commit | f3362007edb30cf411b7bee7c013c4e71dc69e39 (patch) | |
tree | 507e51068fa67885de4ed2eed5c9022ca8f45d11 | |
parent | 0c3feba3f6b3a517b21f9e96fa5e0758e959dec1 (diff) | |
download | afl++-f3362007edb30cf411b7bee7c013c4e71dc69e39.tar.gz |
code format
-rw-r--r-- | src/afl-fuzz-run.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index fb0b5ead..49856a9f 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -355,7 +355,11 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, for (afl->stage_cur = 0; afl->stage_cur < afl->stage_max; ++afl->stage_cur) { - if (unlikely(afl->debug)) { DEBUGF("calibration stage %d/%d\n", afl->stage_cur+1, afl->stage_max); } + if (unlikely(afl->debug)) { + + DEBUGF("calibration stage %d/%d\n", afl->stage_cur + 1, afl->stage_max); + + } u64 cksum; @@ -405,12 +409,18 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, } if (unlikely(!var_detected)) { + // note: from_queue seems to only be set during initialization if (afl->afl_env.afl_no_ui || from_queue) { + WARNF("instability detected during calibration\n"); + } else if (afl->debug) { + DEBUGF("instability detected during calibration\n"); + } + } var_detected = 1; |