about summary refs log tree commit diff
path: root/src/afl-fuzz-bitmap.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-01-18 14:56:26 +0100
committervanhauser-thc <vh@thc.org>2023-01-18 14:56:26 +0100
commit8fe5e29104fc514551bbc926c5142dac68562b43 (patch)
treea1003e19a4d04ba7fa4cf1e587f4c9f6e8bf5802 /src/afl-fuzz-bitmap.c
parent22f757a169d3da3081306c0f861ef99a509073fe (diff)
downloadafl++-8fe5e29104fc514551bbc926c5142dac68562b43.tar.gz
ignore timeout env option
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r--src/afl-fuzz-bitmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index 485b82db..b4e9537e 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -457,6 +457,12 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
 
   if (unlikely(len == 0)) { return 0; }
 
+  if (unlikely(fault == FSRV_RUN_TMOUT && afl->afl_env.afl_ignore_timeouts)) {
+
+    return 0;
+
+  }
+
   u8  fn[PATH_MAX];
   u8 *queue_fn = "";
   u8  new_bits = 0, keeping = 0, res, classified = 0, is_timeout = 0;