lofty-rs/fuzz/fuzz_targets/aacfile_read_from.rs

14 lines
258 B
Rust
Raw Normal View History

2022-10-14 13:06:27 +00:00
#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
use lofty::{AudioFile, ParseOptions};
fuzz_target!(|data: Vec<u8>| {
let _ = lofty::aac::AacFile::read_from(
2022-10-14 13:06:27 +00:00
&mut Cursor::new(data),
ParseOptions::new().read_properties(false),
);
});