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

Method copy_current_input

hail-fuzz/src/main.rs:647–654  ·  view source on GitHub ↗

Copies the currently selected input into `state`.

(&mut self)

Source from the content-addressed store, hash-verified

645
646 /// Copies the currently selected input into `state`.
647 pub fn copy_current_input(&mut self) {
648 self.state.reset();
649 self.state.parent = self.input_id;
650 match self.input_id {
651 Some(id) => self.state.input.clone_from(&self.corpus[id].data),
652 None => random_input(self),
653 };
654 }
655
656 /// Runs the VM until it exits and updates the current fuzzing state.
657 pub fn execute(&mut self) -> Option<VmExit> {

Callers 5

runMethod · 0.80
startMethod · 0.80
startMethod · 0.80
fuzz_oneMethod · 0.80
startMethod · 0.80

Calls 3

random_inputFunction · 0.85
clone_fromMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected