[PR #235] d3d12_xs_rootsig: remove duplicate checksum check rejecting all-zero-checksum Xbox blobs #285

Open
opened 2026-11-26 20:17:23 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/235
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9968


📝 Commits (1)

  • 5bbd0f3 d3d12_xs_rootsig: remove duplicate checksum check that rejected all-zero-checksum Xbox blobs

📊 Changes

1 file changed (+0 additions, -11 deletions)

View changed files

📝 runtime/shims/d3d12_xs_rootsig.cpp (+0 -11)

📄 Description

Carried over from old PR 9968 by liamhob in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9968, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
liamhob: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

What and why

On \main\ (\2d53a8055),
oot_sig\ fails 2 checks:

  • \FAIL blob helper rewrites an all-zero-checksum Xbox blob and keeps its zero checksum\
  • \FAIL shim deserializer accepts an all-zero-checksum Xbox blob with the high byte cleared\


untime/shims/d3d12_xs_rootsig.cpp\ had a duplicate pre-loop DXBC checksum verification (lines 149-153) left from a merge alongside the inner-loop check (lines 174-182). The pre-loop check rejected all-zero-checksum containers before the inner check (which explicitly allows \kZeroHash) could run. This removes the redundant pre-loop hash check, unused \min_chunk_off, and duplicate \ otal_size\ check.

Verification

  • Windows 11, MSVC 19.44, Ninja (tested with #9857 applied to build on MSVC):
    • \ctest -R ^root_sig$: PASS (0.10 s, 0 failures).
    • \git diff --check: clean.
  • Synthetic test only; no game files. AI-assisted.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/235 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9968` --- ### 📝 Commits (1) - [`5bbd0f3`](https://github.com/ubiquitarianism/leonida/commit/5bbd0f35eebee3a3a1e3ba44ac7cab53852cb010) d3d12_xs_rootsig: remove duplicate checksum check that rejected all-zero-checksum Xbox blobs ### 📊 Changes **1 file changed** (+0 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_rootsig.cpp` (+0 -11) </details> ### 📄 Description > Carried over from **old PR 9968** by `liamhob` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9968`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `liamhob`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): ### What and why On \main\ (\2d53a8055\), \ oot_sig\ fails 2 checks: - \FAIL blob helper rewrites an all-zero-checksum Xbox blob and keeps its zero checksum\ - \FAIL shim deserializer accepts an all-zero-checksum Xbox blob with the high byte cleared\ \ untime/shims/d3d12_xs_rootsig.cpp\ had a duplicate pre-loop DXBC checksum verification (lines 149-153) left from a merge alongside the inner-loop check (lines 174-182). The pre-loop check rejected all-zero-checksum containers before the inner check (which explicitly allows \kZeroHash\) could run. This removes the redundant pre-loop hash check, unused \min_chunk_off\, and duplicate \ otal_size\ check. ### Verification - Windows 11, MSVC 19.44, Ninja (tested with `#9857` applied to build on MSVC): - \ctest -R ^root_sig$\: **PASS** (0.10 s, 0 failures). - \git diff --check\: clean. - Synthetic test only; no game files. AI-assisted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#285
No description provided.