lofty-rs/fuzz/fuzz_targets/probe_read.rs
Serial 103387fa26 Fuzz: Make all targets build again
None of the fuzz targets have been touched in awhile, so they haven't been compiling for most of the year probably.
2024-08-31 00:01:00 -04:00

12 lines
230 B
Rust

#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
use lofty::probe::Probe;
fuzz_target!(|data: Vec<u8>| {
if let Ok(probe) = Probe::new(&mut Cursor::new(data)).guess_file_type() {
let _ = probe.read();
}
});