new snapshot api

This commit is contained in:
Andrea Fioraldi
2020-07-28 16:13:32 +02:00
parent 952e5b47eb
commit a22f4dd1ac
2 changed files with 55 additions and 10 deletions

View File

@ -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));