diff options
author | vanhauser-thc <vh@thc.org> | 2024-06-10 18:22:06 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-06-10 18:22:06 +0200 |
commit | 6ed0a2b4aa0c22f95ba723cfda5b1fb79a224bc8 (patch) | |
tree | 9e91158d6301667ca76dc162ddb2a99ab08fb246 /src/afl-fuzz-stats.c | |
parent | 8e50c0c103cade9723f115fc92e3065f64c79713 (diff) | |
download | afl++-6ed0a2b4aa0c22f95ba723cfda5b1fb79a224bc8.tar.gz |
fast resume setup detection
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 3a71e158..a20c46d0 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -76,7 +76,13 @@ char *get_fuzzing_state(afl_state_t *afl) { void write_setup_file(afl_state_t *afl, u32 argc, char **argv) { - u8 fn[PATH_MAX]; + u8 fn[PATH_MAX], fn2[PATH_MAX]; + + snprintf(fn2, PATH_MAX, "%s/target_hash", afl->out_dir); + FILE *f2 = create_ffile(fn2); + fprintf(f2, "%p\n", (void *)get_binary_hash(afl->fsrv.target_path)); + fclose(f2); + snprintf(fn, PATH_MAX, "%s/fuzzer_setup", afl->out_dir); FILE *f = create_ffile(fn); u32 i; |