mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
Fuzz: Read properties in file read targets
No idea why all of the targets had `read_properties(false)`.
This commit is contained in:
parent
d51a151407
commit
8c9ec0f178
11 changed files with 11 additions and 44 deletions
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::aac::AacFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::aac::AacFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::iff::aiff::AiffFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::iff::aiff::AiffFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::ape::ApeFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::ape::ApeFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::flac::FlacFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::flac::FlacFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::mp4::Mp4File::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::mp4::Mp4File::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::mpeg::MpegFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::mpeg::MpegFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::ogg::OpusFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::ogg::OpusFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::ogg::SpeexFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::ogg::SpeexFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::ogg::VorbisFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::ogg::VorbisFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::iff::wav::WavFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::iff::wav::WavFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
|
@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target;
|
|||
use lofty::{AudioFile, ParseOptions};
|
||||
|
||||
fuzz_target!(|data: Vec<u8>| {
|
||||
let _ = lofty::wavpack::WavPackFile::read_from(
|
||||
&mut Cursor::new(data),
|
||||
ParseOptions::new().read_properties(false),
|
||||
);
|
||||
let _ = lofty::wavpack::WavPackFile::read_from(&mut Cursor::new(data), ParseOptions::new());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue