lofty-rs/fuzz/fuzz_targets/speexfile_read_from.rs

12 lines
252 B
Rust
Raw Normal View History

#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
use lofty::config::ParseOptions;
use lofty::file::AudioFile;
fuzz_target!(|data: Vec<u8>| {
let _ = lofty::ogg::SpeexFile::read_from(&mut Cursor::new(data), ParseOptions::new());
});