mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
12 lines
223 B
Rust
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();
|
|
}
|
|
});
|