about summary refs log tree commit diff
path: root/afl-fuzz.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-07-19 17:56:52 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-07-19 17:56:52 +0200
commit907c054142ce7c72a0050ac3963d82a59c5e4f0a (patch)
tree84e6866c2840beff64dc85d7c5c90ebf18a3f979 /afl-fuzz.c
parent866e22355c4bb00abe6ee43c7ff2231e93b15005 (diff)
downloadafl++-907c054142ce7c72a0050ac3963d82a59c5e4f0a.tar.gz
this closes #23
Diffstat (limited to 'afl-fuzz.c')
-rw-r--r--afl-fuzz.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/afl-fuzz.c b/afl-fuzz.c
index 1b5ccba5..422260ef 100644
--- a/afl-fuzz.c
+++ b/afl-fuzz.c
@@ -8845,6 +8845,14 @@ static u8 pilot_fuzzing(char** argv) {
 
 				}
 				new_hit_cnt = queued_paths + unique_crashes;
+				
+				if (!splice_cycle) {
+          stage_finds[STAGE_HAVOC]  += new_hit_cnt - orig_hit_cnt;
+          stage_cycles[STAGE_HAVOC] += stage_max;
+        } else {
+          stage_finds[STAGE_SPLICE]  += new_hit_cnt - orig_hit_cnt;
+          stage_cycles[STAGE_SPLICE] += stage_max;
+        }
 
 #ifndef IGNORE_FINDS