Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit adda14e

Browse files
Holzhauspolyfloyd
authored andcommitted
test: Add smoke test for decoding file with broken IPLS frame
The test data from extracted from the sample file attached to #147. $ cargo run --example tagdump sample.mp3 > testdata/github-issue-147.id3 Tag size: 42998 Footer: no Writing 42998 bytes to stdout... Done.
1 parent 1ad86a8 commit adda14e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/tag.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,14 @@ mod tests {
751751
let _tag = Tag::read_from_path("testdata/github-issue-91.id3").unwrap();
752752
}
753753

754+
#[test]
755+
fn github_issue_147() {
756+
// Tag contains a broken IPLS frame with an odd value count. We need to handle this
757+
// gracefully without failing to parse the entire tag, because these issue is apparently
758+
// widespread.
759+
let _tag = Tag::read_from_path("testdata/github-issue-147.id3").unwrap();
760+
}
761+
754762
#[test]
755763
fn aiff_read_and_write() {
756764
// Copy

testdata/github-issue-147.id3

42 KB
Binary file not shown.

0 commit comments

Comments
 (0)