lofty-rs/fuzz/fuzz_targets/mpegfile_read_from.rs

14 lines
260 B
Rust
Raw Normal View History

2022-01-03 01:53:26 +00:00
#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
2022-09-24 06:34:22 +00:00
use lofty::{AudioFile, ParseOptions};
2022-01-03 01:53:26 +00:00
fuzz_target!(|data: Vec<u8>| {
2022-09-24 06:34:22 +00:00
let _ = lofty::mpeg::MPEGFile::read_from(
&mut Cursor::new(data),
ParseOptions::new().read_properties(false),
);
2022-01-03 01:53:26 +00:00
});