about summary refs log tree commit diff
path: root/src/afl-fuzz-stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r--src/afl-fuzz-stats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index 5ff68aac..63cca14d 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -284,6 +284,10 @@ void show_stats(afl_state_t *afl) {
 
   if (afl->not_on_tty) return;
 
+  /* If we haven't started doing things, bail out. */
+
+  if (!afl->queue_cur) return;
+
   /* Compute some mildly useful bitmap stats. */
 
   t_bits = (MAP_SIZE << 3) - count_bits(afl->virgin_bits);