lofty-rs/fuzz/fuzz_targets/picture_from_flac_bytes.rs

10 lines
256 B
Rust
Raw Normal View History

#![no_main]
use lofty::ParsingMode;
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
let _ = lofty::Picture::from_flac_bytes(data, true, ParsingMode::Relaxed);
let _ = lofty::Picture::from_flac_bytes(data, false, ParsingMode::Relaxed);
});