From 8c9ec0f17899f837c3d0e9674dd4785a6725f304 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Sun, 22 Oct 2023 23:30:00 -0400 Subject: [PATCH] Fuzz: Read properties in file read targets No idea why all of the targets had `read_properties(false)`. --- fuzz/fuzz_targets/aacfile_read_from.rs | 5 +---- fuzz/fuzz_targets/aifffile_read_from.rs | 5 +---- fuzz/fuzz_targets/apefile_read_from.rs | 5 +---- fuzz/fuzz_targets/flacfile_read_from.rs | 5 +---- fuzz/fuzz_targets/mp4file_read_from.rs | 5 +---- fuzz/fuzz_targets/mpegfile_read_from.rs | 5 +---- fuzz/fuzz_targets/opusfile_read_from.rs | 5 +---- fuzz/fuzz_targets/speexfile_read_from.rs | 5 +---- fuzz/fuzz_targets/vorbisfile_read_from.rs | 5 +---- fuzz/fuzz_targets/wavfile_read_from.rs | 5 +---- fuzz/fuzz_targets/wavpackfile_read_from.rs | 5 +---- 11 files changed, 11 insertions(+), 44 deletions(-) diff --git a/fuzz/fuzz_targets/aacfile_read_from.rs b/fuzz/fuzz_targets/aacfile_read_from.rs index c13ed035..026635bf 100644 --- a/fuzz/fuzz_targets/aacfile_read_from.rs +++ b/fuzz/fuzz_targets/aacfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/aifffile_read_from.rs b/fuzz/fuzz_targets/aifffile_read_from.rs index 4f2e0ae6..4cefeacc 100644 --- a/fuzz/fuzz_targets/aifffile_read_from.rs +++ b/fuzz/fuzz_targets/aifffile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/apefile_read_from.rs b/fuzz/fuzz_targets/apefile_read_from.rs index be77bf54..4bc8a5de 100644 --- a/fuzz/fuzz_targets/apefile_read_from.rs +++ b/fuzz/fuzz_targets/apefile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/flacfile_read_from.rs b/fuzz/fuzz_targets/flacfile_read_from.rs index 890e90fd..cf68f934 100644 --- a/fuzz/fuzz_targets/flacfile_read_from.rs +++ b/fuzz/fuzz_targets/flacfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/mp4file_read_from.rs b/fuzz/fuzz_targets/mp4file_read_from.rs index bca5e88a..4b1d9f73 100644 --- a/fuzz/fuzz_targets/mp4file_read_from.rs +++ b/fuzz/fuzz_targets/mp4file_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/mpegfile_read_from.rs b/fuzz/fuzz_targets/mpegfile_read_from.rs index 40649d1b..c19032df 100644 --- a/fuzz/fuzz_targets/mpegfile_read_from.rs +++ b/fuzz/fuzz_targets/mpegfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/opusfile_read_from.rs b/fuzz/fuzz_targets/opusfile_read_from.rs index 0068c010..1ea8350f 100644 --- a/fuzz/fuzz_targets/opusfile_read_from.rs +++ b/fuzz/fuzz_targets/opusfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/speexfile_read_from.rs b/fuzz/fuzz_targets/speexfile_read_from.rs index 29f9744f..1a9c59b1 100644 --- a/fuzz/fuzz_targets/speexfile_read_from.rs +++ b/fuzz/fuzz_targets/speexfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/vorbisfile_read_from.rs b/fuzz/fuzz_targets/vorbisfile_read_from.rs index 74ac4d62..4e329dd0 100644 --- a/fuzz/fuzz_targets/vorbisfile_read_from.rs +++ b/fuzz/fuzz_targets/vorbisfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/wavfile_read_from.rs b/fuzz/fuzz_targets/wavfile_read_from.rs index d0dd4c16..6f575749 100644 --- a/fuzz/fuzz_targets/wavfile_read_from.rs +++ b/fuzz/fuzz_targets/wavfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); }); diff --git a/fuzz/fuzz_targets/wavpackfile_read_from.rs b/fuzz/fuzz_targets/wavpackfile_read_from.rs index c99e7d98..df05c0ae 100644 --- a/fuzz/fuzz_targets/wavpackfile_read_from.rs +++ b/fuzz/fuzz_targets/wavpackfile_read_from.rs @@ -6,8 +6,5 @@ use libfuzzer_sys::fuzz_target; use lofty::{AudioFile, ParseOptions}; fuzz_target!(|data: Vec| { - 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()); });