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:
Matthew Jackson
2026-09-29 20:45:05 -07:00
parent 1d78420366
commit 4031513574
196 changed files with 14014 additions and 4397 deletions
+5 -2
View File
@@ -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"
);
}