mirror of
https://github.com/freemkv/libfreemkv.git
synced 2026-10-07 18:13:10 +00:00
audit: module-by-module code audit fixes and test coverage
Lands the code-audit branches for aacs, css, keys, labels, udf, ifo and dvd, bdnav/mpls/clpi, disc/bluray, extract, io, scsi, the mkv, mp4, network and mpg muxers, the audio and video codecs, and CI. Fixes include MKB and FMTS validation, UDF bounds, IFO fallback to the BUP, DTS Express framing, MPEG-2 field pairing and mpg re-basing; the rest pins existing behaviour with tests.
This commit is contained in:
+5
-2
@@ -188,8 +188,11 @@ fn scan_iso_propagates_scan_error() {
|
||||
.suffix(".iso")
|
||||
.tempfile()
|
||||
.expect("tempfile create");
|
||||
tmp.write_all(&vec![0u8; 8 * SECTOR_SIZE]).expect("write");
|
||||
tmp.write_all(&vec![0u8; 300 * SECTOR_SIZE]).expect("write");
|
||||
tmp.flush().expect("flush");
|
||||
let result = libfreemkv::scan_iso(tmp.path(), ScanOptions::default());
|
||||
assert!(result.is_err(), "non-UDF image must error");
|
||||
assert!(
|
||||
matches!(result, Err(libfreemkv::error::Error::UdfNotFilesystem)),
|
||||
"non-UDF image must surface the not-UDF verdict"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user