MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / capture

Method capture

hail-fuzz/src/main.rs:406–412  ·  view source on GitHub ↗
(fuzzer: &mut Fuzzer)

Source from the content-addressed store, hash-verified

404
405impl Snapshot {
406 pub fn capture(fuzzer: &mut Fuzzer) -> Self {
407 Self {
408 vm: fuzzer.vm.snapshot(),
409 coverage: fuzzer.coverage.snapshot_local(&mut fuzzer.vm),
410 tracer: fuzzer.path_tracer.map(|x| x.snapshot(&mut fuzzer.vm)),
411 }
412 }
413
414 #[allow(unused)]
415 pub fn restore(&self, fuzzer: &mut Fuzzer) {

Callers

nothing calls this directly

Calls 2

snapshot_localMethod · 0.80
snapshotMethod · 0.45

Tested by

no test coverage detected