AFL_DISABLE_REDUNDANT

This commit is contained in:
vanhauser-thc
2024-05-02 08:35:24 +02:00
parent 5d623a27ed
commit 26eaf53a83
9 changed files with 27 additions and 8 deletions

View File

@ -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);