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

Method is_valid_driver

src/program/libfuzzer.rs:371–381  ·  view source on GitHub ↗

If a driver ends with ".cc" and has a seed corpus, it is valid.

(&self, driver: &Path)

Source from the content-addressed store, hash-verified

369
370 /// If a driver ends with ".cc" and has a seed corpus, it is valid.
371 fn is_valid_driver(&self, driver: &Path) -> bool {
372 if let Some(ex) = driver.extension() {
373 if ex.to_string_lossy() == "cc" {
374 let seed = driver.with_extension("seed");
375 if seed.exists() {
376 return true;
377 }
378 }
379 }
380 false
381 }
382
383 /// compile the huge fuzzers with libfuzzer.
384 pub fn compile(&self) -> Result<()> {

Callers 1

synthesisMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected