mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-12 21:52:33 +00:00
95476dccd9
closes: #322
25 lines
613 B
Rust
25 lines
613 B
Rust
use crate::{get_reader, oom_test};
|
|
use lofty::config::ParseOptions;
|
|
use lofty::mpeg::MpegFile;
|
|
use lofty::prelude::*;
|
|
|
|
#[test]
|
|
fn crash1() {
|
|
let mut reader =
|
|
get_reader("mpegfile_read_from/crash-9b17818b6404b1c4b9f89c09dc11e915b96cafc6");
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test]
|
|
fn crash2() {
|
|
let mut reader =
|
|
get_reader("mpegfile_read_from/crash-718f75611e77caac968c7f68cdefa1472172f64b");
|
|
|
|
let _ = MpegFile::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test]
|
|
fn oom1() {
|
|
oom_test::<MpegFile>("mpegfile_read_from/oom-f8730cbfa5682ab12343ccb70de9b71a061ef4d0");
|
|
}
|