2023-04-23 18:51:30 +00:00
|
|
|
use crate::{get_reader, oom_test};
|
2024-04-13 16:50:28 +00:00
|
|
|
use lofty::config::ParseOptions;
|
2023-04-21 02:32:47 +00:00
|
|
|
use lofty::mpeg::MpegFile;
|
2024-04-10 18:08:28 +00:00
|
|
|
use lofty::prelude::*;
|
2023-04-23 18:51:30 +00:00
|
|
|
|
2024-08-31 17:38:30 +00:00
|
|
|
#[test_log::test]
|
2023-04-23 18:51:30 +00:00
|
|
|
fn crash1() {
|
|
|
|
let mut reader =
|
|
|
|
get_reader("mpegfile_read_from/crash-9b17818b6404b1c4b9f89c09dc11e915b96cafc6");
|
|
|
|
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|
2022-07-24 20:25:08 +00:00
|
|
|
|
2024-08-31 17:38:30 +00:00
|
|
|
#[test_log::test]
|
2023-04-23 19:19:13 +00:00
|
|
|
fn crash2() {
|
|
|
|
let mut reader =
|
|
|
|
get_reader("mpegfile_read_from/crash-718f75611e77caac968c7f68cdefa1472172f64b");
|
|
|
|
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|
|
|
|
|
2024-10-30 00:50:02 +00:00
|
|
|
#[test_log::test]
|
|
|
|
fn crash3() {
|
|
|
|
let mut reader =
|
|
|
|
get_reader("mpegfile_read_from/crash-7b5eb183cc14faf3ecc93bdf4a5e30b05f7a537d_minimized");
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|
|
|
|
|
2024-11-02 14:39:48 +00:00
|
|
|
#[test_log::test]
|
|
|
|
fn crash4() {
|
|
|
|
let mut reader =
|
|
|
|
get_reader("mpegfile_read_from/crash-b8f2fc10e2ab6c4e60c371aea3949871fc61a39b_minimized");
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|
|
|
|
|
2024-08-31 17:38:30 +00:00
|
|
|
#[test_log::test]
|
2022-07-24 20:25:08 +00:00
|
|
|
fn oom1() {
|
2023-04-21 02:32:47 +00:00
|
|
|
oom_test::<MpegFile>("mpegfile_read_from/oom-f8730cbfa5682ab12343ccb70de9b71a061ef4d0");
|
2022-07-24 20:25:08 +00:00
|
|
|
}
|