Fuzz: Read properties in file read targets

No idea why all of the targets had `read_properties(false)`.
This commit is contained in:
Serial 2023-10-22 23:30:00 -04:00 committed by Alex
parent d51a151407
commit 8c9ec0f178
11 changed files with 11 additions and 44 deletions

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});

View file

@ -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());
});