MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / load_programs_from_seeds

Method load_programs_from_seeds

src/deopt.rs:586–595  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

584 }
585
586 pub fn load_programs_from_seeds(&mut self) -> Result<()> {
587 self.seed_queue.clear();
588 let seed_dir = self.get_library_seed_dir()?;
589 for entry in utils::read_sort_dir(&seed_dir)? {
590 let program = Program::load_from_path(&entry)?;
591 self.seed_queue.push_back(program);
592 }
593 log::trace!("{} programs are load.", self.seed_queue.len());
594 Ok(())
595 }
596
597 // Prepare a work dir and gadgets for Transformer to dynamically infer the fuzz-ability of a driver.
598 // The driver is a program that contains only an argument that was transformed to receive fuzzer's bytes.

Callers 4

test_seed_to_promptFunction · 0.80
fuzz_loopMethod · 0.80
sync_from_previousMethod · 0.80

Calls 3

read_sort_dirFunction · 0.85
get_library_seed_dirMethod · 0.80
clearMethod · 0.45

Tested by 2

test_seed_to_promptFunction · 0.64