diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-07-28 16:13:32 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-07-28 16:13:32 +0200 |
commit | a22f4dd1ac1fe12bc5b81c3311524bc175a2eed0 (patch) | |
tree | f854486c862b92bc8a8afb4aee2f5cc7c1bf0f5f /llvm_mode/afl-llvm-rt.o.c | |
parent | 952e5b47ebaa0e1813e42ad7e7b524a519135d46 (diff) | |
download | afl++-a22f4dd1ac1fe12bc5b81c3311524bc175a2eed0.tar.gz |
new snapshot api
Diffstat (limited to 'llvm_mode/afl-llvm-rt.o.c')
-rw-r--r-- | llvm_mode/afl-llvm-rt.o.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c index a2038188..25be0d5a 100644 --- a/llvm_mode/afl-llvm-rt.o.c +++ b/llvm_mode/afl-llvm-rt.o.c @@ -521,7 +521,7 @@ static void __afl_start_snapshots(void) { close(FORKSRV_FD); close(FORKSRV_FD + 1); - if (!afl_snapshot_do()) { raise(SIGSTOP); } + if (!afl_snapshot_take(AFL_SNAPSHOT_MMAP | AFL_SNAPSHOT_FDS | AFL_SNAPSHOT_REGS | AFL_SNAPSHOT_EXIT)) { raise(SIGSTOP); } __afl_area_ptr[0] = 1; memset(__afl_prev_loc, 0, NGRAM_SIZE_MAX * sizeof(PREV_LOC_T)); |