lofty-rs/fuzz/fuzz_targets/probe_read.rs
2023-10-22 23:44:21 -04:00

12 lines
223 B
Rust

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