diff options
author | vanhauser-thc <vh@thc.org> | 2024-08-19 16:25:32 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-08-19 16:25:32 +0200 |
commit | 1689a8e053c1f73e16331bfeda28c79e1ed4bbd0 (patch) | |
tree | 8e1dbb1b8454c470aa5e0093f6d89c5cc86e9200 /src/afl-fuzz.c | |
parent | 6edc3b51ba81d577eeb4a64299916c1eaadfdd70 (diff) | |
download | afl++-1689a8e053c1f73e16331bfeda28c79e1ed4bbd0.tar.gz |
code format, llvm 18
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 1546597e..726a2260 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2237,6 +2237,7 @@ int main(int argc, char **argv_orig, char **envp) { snprintf(fn, PATH_MAX, "%s/fastresume.bin", afl->out_dir); #ifdef HAVE_ZLIB if ((fr_fd = ZLIBOPEN(fn, "rb")) != NULL) { + #else if ((fr_fd = open(fn, O_RDONLY)) >= 0) { @@ -3340,9 +3341,11 @@ stop_fuzzing: ACTF("Writing %s ...", fr); #ifdef HAVE_ZLIB if ((fr_fd = ZLIBOPEN(fr, "wb9")) != NULL) { + #else if ((fr_fd = open(fr, O_WRONLY | O_TRUNC | O_CREAT, DEFAULT_PERMISSION)) >= 0) { + #endif u8 ver_string[8]; |