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

Method get_minimized_corpus

src/program/libfuzzer.rs:417–424  ·  view source on GitHub ↗
(&self, driver: &Path)

Source from the content-addressed store, hash-verified

415 }
416
417 fn get_minimized_corpus(&self, driver: &Path) -> Result<PathBuf> {
418 let program = Program::load_from_path(driver)?;
419 let work_seed = self.deopt.get_work_seed_by_id(program.id)?;
420
421 let work_dir = deopt::utils::get_file_dirname(&work_seed);
422 let minimized: PathBuf = [work_dir, "corpus".into()].iter().collect();
423 Ok(minimized)
424 }
425}
426
427/// The function (except main and LLVMFuzzerTestOneInput*) and global variables declared in driver might cause redefinition

Callers 1

fuse_corpusMethod · 0.80

Calls 2

get_file_dirnameFunction · 0.85
get_work_seed_by_idMethod · 0.80

Tested by

no test coverage detected