mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-15 07:02:31 +00:00
27 lines
1.1 KiB
Rust
27 lines
1.1 KiB
Rust
|
#[test]
|
||
|
fn unreachable1() {
|
||
|
// https://github.com/Serial-ATA/lofty-rs/issues/295
|
||
|
let data = [1, 0, 0, 0];
|
||
|
let _local0 = lofty::id3::v2::Id3v2Tag::new();
|
||
|
let _local1_param0_helper1 = &(_local0);
|
||
|
let _local1 = lofty::id3::v2::Id3v2Tag::original_version(_local1_param0_helper1);
|
||
|
let _local2_param0_helper1 = &mut (&data[..]);
|
||
|
let _: lofty::error::Result<std::option::Option<lofty::id3::v2::ExtendedTextFrame>> =
|
||
|
lofty::id3::v2::ExtendedTextFrame::parse(_local2_param0_helper1, _local1);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn overflow1() {
|
||
|
// https://github.com/Serial-ATA/lofty-rs/issues/295
|
||
|
let data = [
|
||
|
57, 25, 25, 0, 4, 1, 54, 0, 51, 6, 6, 6, 25, 25, 25, 129, 6, 151, 28, 25, 25, 0, 51, 51,
|
||
|
50, 5, 5, 5, 26, 5, 5, 25, 6, 6, 25, 26, 246, 25, 25, 129, 6, 151, 3, 252, 56, 0, 53, 56,
|
||
|
55, 52,
|
||
|
];
|
||
|
let _local0 = <lofty::ParsingMode as std::default::Default>::default();
|
||
|
let _local1_param0_helper1 = &mut (&data[..]);
|
||
|
let _: lofty::error::Result<
|
||
|
std::option::Option<lofty::id3::v2::RelativeVolumeAdjustmentFrame>,
|
||
|
> = lofty::id3::v2::RelativeVolumeAdjustmentFrame::parse(_local1_param0_helper1, _local0);
|
||
|
}
|