Copies the currently selected input into `state`.
(&mut self)
| 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> { |