2024-07-13 20:15:18 +00:00
|
|
|
use crate::{get_reader, oom_test};
|
|
|
|
use lofty::config::ParseOptions;
|
|
|
|
use lofty::file::AudioFile;
|
2022-10-14 12:08:12 +00:00
|
|
|
use lofty::iff::aiff::AiffFile;
|
2022-07-10 22:15:38 +00:00
|
|
|
|
2024-08-31 17:38:30 +00:00
|
|
|
#[test_log::test]
|
2022-07-10 22:15:38 +00:00
|
|
|
fn oom1() {
|
|
|
|
oom_test::<AiffFile>("aifffile_read_from/oom-88065007d35ee271d5812fd723a3b458488813ea");
|
|
|
|
}
|
2024-07-13 20:15:18 +00:00
|
|
|
|
2024-08-31 17:38:30 +00:00
|
|
|
#[test_log::test]
|
2024-07-13 20:15:18 +00:00
|
|
|
fn panic1() {
|
|
|
|
let mut reader =
|
|
|
|
get_reader("aifffile_read_from/full_test_IDX_5_RAND_89430166450532348786207.aiff");
|
|
|
|
let _ = AiffFile::read_from(&mut reader, ParseOptions::default());
|
|
|
|
}
|