mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
no more unlink
This commit is contained in:
@ -17,7 +17,9 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
|
|||||||
Version ++2.54d (dev):
|
Version ++2.54d (dev):
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
- ... your patch? :)
|
- no more unlinking the input file, this way the input file can also be a
|
||||||
|
FIFO or disk partition
|
||||||
|
- reducing duplicate code in afl-fuzz
|
||||||
|
|
||||||
|
|
||||||
--------------------------
|
--------------------------
|
||||||
|
@ -253,9 +253,9 @@ void write_to_testcase(void* mem, u32 len) {
|
|||||||
|
|
||||||
if (out_file) {
|
if (out_file) {
|
||||||
|
|
||||||
unlink(out_file); /* Ignore errors. */
|
//unlink(out_file); /* Ignore errors. */
|
||||||
|
|
||||||
fd = open(out_file, O_WRONLY | O_CREAT | O_EXCL, 0600);
|
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);
|
||||||
|
|
||||||
if (fd < 0) PFATAL("Unable to create '%s'", out_file);
|
if (fd < 0) PFATAL("Unable to create '%s'", out_file);
|
||||||
|
|
||||||
@ -295,9 +295,9 @@ void write_with_gap(void* mem, u32 len, u32 skip_at, u32 skip_len) {
|
|||||||
|
|
||||||
if (out_file) {
|
if (out_file) {
|
||||||
|
|
||||||
unlink(out_file); /* Ignore errors. */
|
//unlink(out_file); /* Ignore errors. */
|
||||||
|
|
||||||
fd = open(out_file, O_WRONLY | O_CREAT | O_EXCL, 0600);
|
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);
|
||||||
|
|
||||||
if (fd < 0) PFATAL("Unable to create '%s'", out_file);
|
if (fd < 0) PFATAL("Unable to create '%s'", out_file);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user