diff options
author | van Hauser <vh@thc.org> | 2024-05-14 13:18:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 13:18:22 +0200 |
commit | a26bb0b0f247a571cad56c9566235321cc93ba41 (patch) | |
tree | ae0d66d8a364ae4674f9a915457d83d55ed56fac /src/afl-fuzz-queue.c | |
parent | 90fbf59bf16f057e50132b81be759414787ce1a3 (diff) | |
parent | 7d3530a22ea44eba0aa578041e41980b0d9c976a (diff) | |
download | afl++-a26bb0b0f247a571cad56c9566235321cc93ba41.tar.gz |
Merge pull request #2090 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r-- | src/afl-fuzz-queue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 5987ad0c..2318df60 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -371,9 +371,8 @@ 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); + fd = permissive_create(afl, fn); + if (fd >= 0) { close(fd); } } else { |