about summary refs log tree commit diff
path: root/src/afl-fuzz-bitmap.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-06-29 18:00:46 +0300
committerGitHub <noreply@github.com>2023-06-29 18:00:46 +0300
commit641d02ab7211585e72e215405cd49c0712a8b4df (patch)
tree6bf544caf53f4ef7f7ca8ad02c2a412150758aa9 /src/afl-fuzz-bitmap.c
parentaf8c68a774d0271ae6a2145ac566e1c7024e95d5 (diff)
parent3e1d7941077b1457f702988063d6b9fdd9b80740 (diff)
downloadafl++-641d02ab7211585e72e215405cd49c0712a8b4df.tar.gz
Merge pull request #1780 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r--src/afl-fuzz-bitmap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index 556bb5d1..fb8a1d4b 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -533,6 +533,18 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
     close(fd);
     add_to_queue(afl, queue_fn, len, 0);
 
+    if (unlikely(afl->fuzz_mode) && likely(afl->switch_fuzz_mode)) {
+
+      if (afl->afl_env.afl_no_ui) {
+
+        ACTF("New coverage found, switching back to exploration mode.");
+
+      }
+
+      afl->fuzz_mode = 0;
+
+    }
+
 #ifdef INTROSPECTION
     if (afl->custom_mutators_count && afl->current_custom_fuzz) {