lofty-rs/fuzz/fuzz_targets/picture_from_flac_bytes.rs

9 lines
256 B
Rust

#![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);
});