diff options
| author | Pixel-Katana <359786902+Pixel-Katana@users.noreply.github.com> | 2026-11-23 19:44:57 -0600 |
|---|---|---|
| committer | Pixel-Katana <359786902+Pixel-Katana@users.noreply.github.com> | 2026-11-23 19:44:57 -0600 |
| commit | 681847c7c39592864dd26605b46b4c83e97f0235 (patch) | |
| tree | e0ce9146baeae48b8f9436f836ec1e7951c99808 /runtime/src/bcpack.cpp | |
| parent | 0c9864c98eae8bf3a7fe9c8d758ffb9155e10b14 (diff) | |
d3d12_xs_rootsig: accept an all-zero checksum and keep the fail-closed chunk table
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. Merge 1e029d6df
kept 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>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions