diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-27 16:04:07 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-27 16:04:07 +0100 |
commit | 3712a7011545b6babec9b3f95a947349f13f01f2 (patch) | |
tree | adbf9d496e4a3427c06d007f277d51576210abc2 /src/afl-fuzz-redqueen.c | |
parent | 7c17697cae6ff4b28f7e039b53d20c70c558ed7f (diff) | |
download | afl++-3712a7011545b6babec9b3f95a947349f13f01f2.tar.gz |
bye bye SanCov for CmpLog
Diffstat (limited to 'src/afl-fuzz-redqueen.c')
-rw-r--r-- | src/afl-fuzz-redqueen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index 19fc51f0..d6f117f6 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -118,8 +118,8 @@ u8 colorization(u8* buf, u32 len, u32 exec_cksum) { stage_max = 1000; struct range* rng; - stage_cur = stage_max; - while ((rng = pop_biggest_range(&ranges)) != NULL && stage_cur) { + stage_cur = 0; + while ((rng = pop_biggest_range(&ranges)) != NULL && stage_cur < stage_max) { u32 s = rng->end - rng->start; if (s == 0) goto empty_range; @@ -142,15 +142,15 @@ u8 colorization(u8* buf, u32 len, u32 exec_cksum) { empty_range: ck_free(rng); - --stage_cur; + ++stage_cur; } - if (stage_cur) queue_cur->fully_colorized = 1; + if (stage_cur < stage_max) queue_cur->fully_colorized = 1; new_hit_cnt = queued_paths + unique_crashes; stage_finds[STAGE_COLORIZATION] += new_hit_cnt - orig_hit_cnt; - stage_cycles[STAGE_COLORIZATION] += stage_max - stage_cur; + stage_cycles[STAGE_COLORIZATION] += stage_cur; ck_free(backup); while (ranges) { |