Fuzz: Add targets for Speex and WavPack

This commit is contained in:
Serial 2022-06-07 20:20:26 -04:00
parent 4420f92a9f
commit e62e2c1386
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
3 changed files with 28 additions and 0 deletions

View file

@ -50,10 +50,18 @@ path = "fuzz_targets/opusfile_read_from.rs"
name = "vorbisfile_read_from"
path = "fuzz_targets/vorbisfile_read_from.rs"
[[bin]]
name = "speexfile_read_from"
path = "fuzz_targets/speexfile_read_from.rs"
[[bin]]
name = "wavfile_read_from"
path = "fuzz_targets/wavfile_read_from.rs"
[[bin]]
name = "wavpackfile_read_from"
path = "fuzz_targets/wavpackfile_read_from.rs"
[[bin]]
name = "pictureinformation_from_jpeg"
path = "fuzz_targets/pictureinformation_from_jpeg.rs"

View file

@ -0,0 +1,10 @@
#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
use lofty::AudioFile;
fuzz_target!(|data: Vec<u8>| {
let _ = lofty::ogg::SpeexFile::read_from(&mut Cursor::new(data), false);
});

View file

@ -0,0 +1,10 @@
#![no_main]
use std::io::Cursor;
use libfuzzer_sys::fuzz_target;
use lofty::AudioFile;
fuzz_target!(|data: Vec<u8>| {
let _ = lofty::wavpack::WavPackFile::read_from(&mut Cursor::new(data), false);
});