If a driver ends with ".cc" and has a seed corpus, it is valid.
(&self, driver: &Path)
| 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<()> { |