mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 20:58:36 +00:00
b95925cbf(all-zero checksum accepted, as host d3d12.dll does) and c297bb577/5c3487a94 (strict checksum, fail closed on a malformed chunk table) changed copy_rts0_blob_clear_xbox_flags in parallel. Merge1e029d6dfkept the strict early checksum from one and the loop from the other, so: - an all-zero-checksum Xbox blob was rejected before the zero-aware check ran: root_sig_test fails on main ("blob helper rewrites an all-zero-checksum Xbox blob and keeps its zero checksum", "shim deserializer accepts an all-zero-checksum Xbox blob with the high byte cleared"); - the chunk loop skipped malformed entries instead of failing, dropped the RTS0 version check, and left min_chunk_off unused. The function now has 5c3487a94's fail-closed chunk walk and RTS0 version check, with b95925cbf's rule: an all-zero checksum is accepted and stays zero after the rewrite; any other checksum must match. The duplicate total_size and checksum checks inside the loop are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>