about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-09-06 12:16:31 +0200
committerGitHub <noreply@github.com>2024-09-06 12:16:31 +0200
commit75d8c47a6b8ae94cd7ded2f0574e4d35a2021ab7 (patch)
treeb702e4d7c53835439ed83ed9291723cb32b7ebfa /src/afl-fuzz-queue.c
parent598a3c6b5e24bd33e84b914e145810d39f88adf6 (diff)
parent3ec794c806f9e5fbdd4bdb55cac11b2eb9d010c7 (diff)
downloadafl++-75d8c47a6b8ae94cd7ded2f0574e4d35a2021ab7.tar.gz
Merge pull request #2204 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index 599d31f6..8db89775 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -455,9 +455,8 @@ void mark_as_variable(afl_state_t *afl, struct queue_entry *q) {
 
   if (symlink(ldest, fn)) {
 
-    s32 fd = open(fn, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
-    if (fd < 0) { PFATAL("Unable to create '%s'", fn); }
-    close(fd);
+    s32 fd = permissive_create(afl, fn);
+    if (fd >= 0) { close(fd); }
 
   }