about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-10-01 10:13:35 +0200
committervanhauser-thc <vh@thc.org>2024-10-01 10:13:35 +0200
commit146e535f7b644a3d38f8e90c415974b23ff295c0 (patch)
treefe70e4386d7c44600948d4b2b46506d84bd7e1a3 /src/afl-fuzz-init.c
parentb88f132975b41aa16c43ee5e2bc3a243b79330ec (diff)
downloadafl++-146e535f7b644a3d38f8e90c415974b23ff295c0.tar.gz
persistent record for frida and qmeu
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 9eaa661d..a9397232 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -1237,19 +1237,26 @@ void perform_dry_run(afl_state_t *afl) {
             u8 crash_log_fn[PATH_MAX];
 
             snprintf(crash_log_fn, PATH_MAX, "%s.log", crash_fn);
-            fd = open(crash_log_fn, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
-            if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", crash_log_fn); }
+            fd = open(crash_log_fn, O_WRONLY | O_CREAT | O_EXCL,
+                      DEFAULT_PERMISSION);
+            if (unlikely(fd < 0)) {
+
+              PFATAL("Unable to create '%s'", crash_log_fn);
+
+            }
 
             u32 nyx_aux_string_len = afl->fsrv.nyx_handlers->nyx_get_aux_string(
                 afl->fsrv.nyx_runner, afl->fsrv.nyx_aux_string,
                 afl->fsrv.nyx_aux_string_len);
 
-            ck_write(fd, afl->fsrv.nyx_aux_string, nyx_aux_string_len, crash_log_fn);
+            ck_write(fd, afl->fsrv.nyx_aux_string, nyx_aux_string_len,
+                     crash_log_fn);
             close(fd);
 
           }
+
 #endif
-           
+
           afl->last_crash_time = get_cur_time();
           afl->last_crash_execs = afl->fsrv.total_execs;
 
@@ -2905,6 +2912,7 @@ void check_binary(afl_state_t *afl, u8 *fname) {
             afl->fsrv.target_path);
 
     }
+
 #endif
 
     if (stat(afl->fsrv.target_path, &st) || !S_ISREG(st.st_mode) ||