2022-07-12 03:01:17 +00:00
|
|
|
use crate::oom_test;
|
2024-07-10 00:00:28 +00:00
|
|
|
use lofty::config::ParseOptions;
|
|
|
|
use lofty::file::AudioFile;
|
2022-07-12 03:01:17 +00:00
|
|
|
use lofty::mp4::Mp4File;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn oom1() {
|
|
|
|
oom_test::<Mp4File>("mp4file_read_from/oom-db2665d79ec9c045bdb9c1e9a3d0c93e7e59393e");
|
|
|
|
}
|
2024-07-10 00:00:28 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn panic1() {
|
|
|
|
let mut reader = crate::get_reader(
|
|
|
|
"mp4file_read_from/steam_at_mention_IDX_34_RAND_4491956654166691611931.m4a",
|
|
|
|
);
|
|
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|
2024-07-14 18:33:29 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn panic2() {
|
|
|
|
let mut reader = crate::get_reader(
|
|
|
|
"mp4file_read_from/steam_at_mention_IDX_33_RAND_122808229373977607781108.m4a",
|
|
|
|
);
|
|
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
|
|
}
|