Skip to content

Commit 3438c68

Browse files
committed
Tests: Fix TagLib TestMPEG::testFuzzedFile
The behavior here is weird, the file contains multiple strings that are completely broken. Somehow, TagLib considers the file to be "valid", with it containing no MPEG frames. That doesn't seem correct on their end.
1 parent abfe641 commit 3438c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/taglib/test_mpeg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn test_duplicate_id3v2() {
176176
#[test]
177177
fn test_fuzzed_file() {
178178
let mut file = File::open("tests/taglib/data/excessive_alloc.mp3").unwrap();
179-
let _ = MpegFile::read_from(&mut file, ParseOptions::new()).unwrap();
179+
assert!(MpegFile::read_from(&mut file, ParseOptions::new()).is_err())
180180
}
181181

182182
#[test]

0 commit comments

Comments
 (0)