about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-05-02 08:35:24 +0200
committervanhauser-thc <vh@thc.org>2024-05-02 08:35:24 +0200
commit26eaf53a832be0b12dadbbd290b4a7e676818347 (patch)
treeb7171e10d36fbd8ee708ba326b4e029b38c12523 /src/afl-fuzz-queue.c
parent5d623a27edcd4e6608178f80c7e29ede73138db6 (diff)
downloadafl++-26eaf53a832be0b12dadbbd290b4a7e676818347.tar.gz
AFL_DISABLE_REDUNDANT
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index df4e7d79..5987ad0c 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -370,6 +370,7 @@ void mark_as_redundant(afl_state_t *afl, struct queue_entry *q, u8 state) {
 
     s32 fd;
 
+    if (unlikely(afl->afl_env.afl_disable_redundant)) { q->disabled = 1; }
     fd = open(fn, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
     if (fd < 0) { PFATAL("Unable to create '%s'", fn); }
     close(fd);