Loader: forwarders honour LEONIDA_COMPAT_DIR; CLZERO scan keeps VirtualSize 0 sections (RT-LOADER-FORWARDER-COMPAT-CLZERO-SCAN) #2528

Closed
leonida/mandy
Tyrannys wants to merge 0 commits from claude/loader-forwarder-compat into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Tyrannys commented 2026-11-28 00:42:33 +00:00

Claimed in the coordination issue as: RT-LOADER-FORWARDER-COMPAT-CLZERO-SCAN (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7231125400). Found by @kevincommits, item 5 of https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230685285. Thanks!

What and why

Two loader bugs in runtime/src/pe_loader.cpp:

  1. Forwarders skipped LEONIDA_COMPAT_DIR. resolve() asks resolve_compat() first, so a drop-in DLL the player put in LEONIDA_COMPAT_DIR owns all of its imports: a module is never served half by a shim and half by the drop-in, which would not share state. resolve_forwarder() never asked it. So an export forwarded into such a module still went to the shim, a bundled copy or System32.
    Fix: resolve_forwarder() asks resolve_compat() before the shim lookup, with the same key and file name rule it already uses (".dll" added when the forwarder string leaves it out). A symbol the drop-in lacks stays unbound, as it does for a direct import. The ordinal is now parsed before the lookups, because resolve_compat() needs it.
  2. The CLZERO scan dropped sections with VirtualSize == 0. protect_sections() sized the scan of an executable section as min(VirtualSize, SizeOfRawData), which is 0 for such a section, so its CLZERO loops were never patched on a CPU without CLZERO. map_image() takes a virtual size of 0 as the raw size and copies those bytes.
    Fix: both now use section_file_bytes() (in pe_loader.h), so the scan covers exactly the bytes map_image() copied.

Item 4 of the later finding (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230881417: clzero_patch::patch() leaves VirtualProtect unchecked after patching) is not here: open #2036 already fixes it, so it is left to that PR.

Tested

  • loader_test, in test_compat_modules (CPU only, synthetic images):
    • A bundled module's export forwarded into the compat DLL binds to the drop-in's export as Host, and it runs.
    • A forwarder into a compat DLL that lacks the symbol (testshim.F, which the test shim table has) is left unimplemented and does not reach the shim. Without LEONIDA_COMPAT_DIR the same forwarder binds to the shim.
    • On main the second case fails ("F was not left unimplemented"); with the fix all 102 checks pass. The first case also passes on main here, because Windows finds the already loaded compat DLL by name through the System32 search, so the second case is the one that shows the bug.
  • section_file_bytes(): static_asserts in loader_test.cpp, including a virtual size of 0. The CLZERO path itself only runs on a CPU without CLZERO; the test machine has it (Zen 5), so that path is covered by the helper it now shares with map_image().
  • Built with MSVC 17 (/W4), Release; no new warnings.

GPUs tested: n/a (CPU test).

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request. (Two small loader fixes from one finding.)
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • Overlap checked: #2499 edits other loader functions; #2414 adds lines after the protection loop in protect_sections, not to the CLZERO scan; #2036 owns the clzero_patch.h fix.

🤖 Generated with Claude Code

Claimed in the coordination issue as: RT-LOADER-FORWARDER-COMPAT-CLZERO-SCAN (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7231125400). Found by @kevincommits, item 5 of https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230685285. Thanks! ### What and why Two loader bugs in `runtime/src/pe_loader.cpp`: 1. **Forwarders skipped `LEONIDA_COMPAT_DIR`.** `resolve()` asks `resolve_compat()` first, so a drop-in DLL the player put in `LEONIDA_COMPAT_DIR` owns all of its imports: a module is never served half by a shim and half by the drop-in, which would not share state. `resolve_forwarder()` never asked it. So an export forwarded into such a module still went to the shim, a bundled copy or System32. **Fix:** `resolve_forwarder()` asks `resolve_compat()` before the shim lookup, with the same key and file name rule it already uses (`".dll"` added when the forwarder string leaves it out). A symbol the drop-in lacks stays unbound, as it does for a direct import. The ordinal is now parsed before the lookups, because `resolve_compat()` needs it. 2. **The CLZERO scan dropped sections with `VirtualSize == 0`.** `protect_sections()` sized the scan of an executable section as `min(VirtualSize, SizeOfRawData)`, which is 0 for such a section, so its CLZERO loops were never patched on a CPU without CLZERO. `map_image()` takes a virtual size of 0 as the raw size and copies those bytes. **Fix:** both now use `section_file_bytes()` (in `pe_loader.h`), so the scan covers exactly the bytes `map_image()` copied. Item 4 of the later finding (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230881417: `clzero_patch::patch()` leaves `VirtualProtect` unchecked after patching) is not here: open #2036 already fixes it, so it is left to that PR. ### Tested - `loader_test`, in `test_compat_modules` (CPU only, synthetic images): - A bundled module's export forwarded into the compat DLL binds to the drop-in's export as Host, and it runs. - A forwarder into a compat DLL that lacks the symbol (`testshim.F`, which the test shim table has) is left unimplemented and does not reach the shim. Without `LEONIDA_COMPAT_DIR` the same forwarder binds to the shim. - On `main` the second case fails ("F was not left unimplemented"); with the fix all 102 checks pass. The first case also passes on `main` here, because Windows finds the already loaded compat DLL by name through the System32 search, so the second case is the one that shows the bug. - `section_file_bytes()`: `static_assert`s in `loader_test.cpp`, including a virtual size of 0. The CLZERO path itself only runs on a CPU without CLZERO; the test machine has it (Zen 5), so that path is covered by the helper it now shares with `map_image()`. - Built with MSVC 17 (`/W4`), Release; no new warnings. GPUs tested: n/a (CPU test). AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. (Two small loader fixes from one finding.) - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] Overlap checked: #2499 edits other loader functions; #2414 adds lines after the protection loop in `protect_sections`, not to the CLZERO scan; #2036 owns the `clzero_patch.h` fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
timbot103 commented 2026-11-28 01:33:49 +00:00

Reviewed at head 472c9638c on Windows 11 (MSVC 2022 19.44).

Verification

  • Built loader_test, pe_loader_test, and gta6rt.
  • ctest -R "^(loader|pe_loader)$": 2/2 passed.

Findings (Request changes)

  1. Owned LEONIDA_COMPAT_DIR export miss in a forwarder can still fall through to System32 (pe_loader.cpp:2017-2024, 2113-2129):
    Direct imports handle an owned compat miss by immediately returning shims::make_unimplemented_thunk(dll, sym) (pe_loader.cpp:2096-2099). In resolve_forwarder(), an owned compat miss returns nullptr, which stops fallback inside resolve_forwarder(), but the caller in resolve() (pe_loader.cpp:2113-2119) treats nullptr the same as any lookup miss and falls through to LoadLibraryExA(dll.c_str(), nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32) (pe_loader.cpp:2122). If a System32 DLL shares the forwarding DLL's name and exports sym, it will silently supply a host implementation despite the compat DLL owning the forwarded module. Returning a distinct owned-miss status (e.g., via an out flag or enum) so resolve() goes directly to make_unimplemented_thunk keeps forwarded and direct compat ownership consistent.
  2. Non-.dll explicit suffixes get .dll appended for compat lookup (pe_loader.cpp:2005, 2019-2020):
    Because shim_key appends ".dll" whenever the module name does not end with ".dll", a forwarder naming a non-.dll extension (e.g., winspool.drv) probes winspool.drv.dll in LEONIDA_COMPAT_DIR, whereas the bundled lookup (pe_loader.cpp:2035) tries module before module + ".dll". Preserving an existing extension (or checking module before module + ".dll" as bundled lookup does) would avoid surprising misses.

The CLZERO scan raw-byte calculation (pe_loader.cpp:2217-2221) cleanly matches the mapper (1737-1743) and clamps to the mapped image boundary.

AI-assisted review + local MSVC verification.

Reviewed at head `472c9638c` on Windows 11 (MSVC 2022 `19.44`). ### Verification - Built `loader_test`, `pe_loader_test`, and `gta6rt`. - `ctest -R "^(loader|pe_loader)$"`: **2/2 passed**. ### Findings (Request changes) 1. **Owned `LEONIDA_COMPAT_DIR` export miss in a forwarder can still fall through to `System32` (`pe_loader.cpp:2017-2024`, `2113-2129`):** Direct imports handle an owned compat miss by immediately returning `shims::make_unimplemented_thunk(dll, sym)` (`pe_loader.cpp:2096-2099`). In `resolve_forwarder()`, an owned compat miss returns `nullptr`, which stops fallback inside `resolve_forwarder()`, but the caller in `resolve()` (`pe_loader.cpp:2113-2119`) treats `nullptr` the same as any lookup miss and falls through to `LoadLibraryExA(dll.c_str(), nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32)` (`pe_loader.cpp:2122`). If a System32 DLL shares the forwarding DLL's name and exports `sym`, it will silently supply a host implementation despite the compat DLL owning the forwarded module. Returning a distinct owned-miss status (e.g., via an out flag or enum) so `resolve()` goes directly to `make_unimplemented_thunk` keeps forwarded and direct compat ownership consistent. 2. **Non-`.dll` explicit suffixes get `.dll` appended for compat lookup (`pe_loader.cpp:2005`, `2019-2020`):** Because `shim_key` appends `".dll"` whenever the module name does not end with `".dll"`, a forwarder naming a non-`.dll` extension (e.g., `winspool.drv`) probes `winspool.drv.dll` in `LEONIDA_COMPAT_DIR`, whereas the bundled lookup (`pe_loader.cpp:2035`) tries `module` before `module + ".dll"`. Preserving an existing extension (or checking `module` before `module + ".dll"` as bundled lookup does) would avoid surprising misses. The `CLZERO` scan raw-byte calculation (`pe_loader.cpp:2217-2221`) cleanly matches the mapper (`1737-1743`) and clamps to the mapped image boundary. AI-assisted review + local MSVC verification.
Tyrannys commented 2026-11-28 02:07:01 +00:00

@timbot103 thank you, both findings were right. They are fixed in e2f9c316e:

  1. Owned compat miss in a forwarder. resolve_forwarder() now reports, through a new compat_miss out flag, that a LEONIDA_COMPAT_DIR module owns the forwarded name but lacks the export. resolve() then binds a failure thunk (make_unimplemented_thunk(dll, sym)), as it does for a direct import of the compat DLL, instead of going on to the forwarding module's System32 namesake. The flag is passed through forwarder chains.
  2. Extensions. The compat file of a forwarded module is now looked up the way the bundled module is: the name as given when it has its own extension (winspool.drv), then with .dll. It is no longer always name + ".dll".

New loader_test cases, both failing at the previous head (472c9638c) and passing now (104 checks, 0 failed):

  • A bundled version.dll whose GetFileVersionInfoSizeA forwards to a compat DLL that lacks the target. The import is unimplemented; before, it bound to System32's export.
  • A forwarder to testcompat.drv.Answer with testcompat.drv in the compat folder. It binds to that file's export, which returns 42.

AI-assisted (Claude Code).

@timbot103 thank you, both findings were right. They are fixed in e2f9c316e: 1. **Owned compat miss in a forwarder.** `resolve_forwarder()` now reports, through a new `compat_miss` out flag, that a `LEONIDA_COMPAT_DIR` module owns the forwarded name but lacks the export. `resolve()` then binds a failure thunk (`make_unimplemented_thunk(dll, sym)`), as it does for a direct import of the compat DLL, instead of going on to the forwarding module's System32 namesake. The flag is passed through forwarder chains. 2. **Extensions.** The compat file of a forwarded module is now looked up the way the bundled module is: the name as given when it has its own extension (`winspool.drv`), then with `.dll`. It is no longer always `name + ".dll"`. New `loader_test` cases, both failing at the previous head (472c9638c) and passing now (104 checks, 0 failed): - A bundled `version.dll` whose `GetFileVersionInfoSizeA` forwards to a compat DLL that lacks the target. The import is unimplemented; before, it bound to System32's export. - A forwarder to `testcompat.drv.Answer` with `testcompat.drv` in the compat folder. It binds to that file's export, which returns 42. AI-assisted (Claude Code).
lixonik approved these changes 2026-11-28 14:57:14 +00:00
lixonik left a comment

Reviewed e2f9c316e and verified the loader test suites on Windows 11.

Code audit:

  • runtime/src/pe_loader.h, runtime/src/pe_loader.cpp: section_file_bytes() cleanly unifies map_image() and protect_sections() so executable sections with VirtualSize == 0 use SizeOfRawData during the CLZERO scan.
  • resolve_forwarder() checks LEONIDA_COMPAT_DIR before shims and bundled modules (preserving an explicit extension like .drv before appending .dll), and propagates compat_miss so a compat drop-in missing a forwarded export binds a failure thunk instead of falling through to System32.

Verification (Windows 11, MSVC 19.44, Ninja Release):

  • Built loader_test and pe_loader_test.
  • ctest -R '^(loader|pe_loader)$': 2/2 passed (loader, pe_loader).
  • python -I scripts/check_no_game_data.py: passed.

AI-assisted (Antigravity, Gemini).

Reviewed `e2f9c316e` and verified the loader test suites on Windows 11. Code audit: - `runtime/src/pe_loader.h`, `runtime/src/pe_loader.cpp`: `section_file_bytes()` cleanly unifies `map_image()` and `protect_sections()` so executable sections with `VirtualSize == 0` use `SizeOfRawData` during the CLZERO scan. - `resolve_forwarder()` checks `LEONIDA_COMPAT_DIR` before shims and bundled modules (preserving an explicit extension like `.drv` before appending `.dll`), and propagates `compat_miss` so a compat drop-in missing a forwarded export binds a failure thunk instead of falling through to System32. Verification (Windows 11, MSVC 19.44, Ninja Release): - Built `loader_test` and `pe_loader_test`. - `ctest -R '^(loader|pe_loader)$'`: **2/2 passed** (`loader`, `pe_loader`). - `python -I scripts/check_no_game_data.py`: passed. AI-assisted (Antigravity, Gemini).
MoonEyes commented 2026-11-28 18:00:09 +00:00

Hi @Tyrannys, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/src/pe_loader.h), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @Tyrannys, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/src/pe_loader.h`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-28 22:04:00 +00:00

Verified by OreoFR

  • Base: main c1ecf04ed + PR head e2f9c316e (tested at e2f9c316e, head is now 0cceb06ee)
  • Test: not run (merge conflict with main)
  • Red on main: not run
  • Green with the PR: not run
  • Verdict: CONFLICT (runtime/src/pe_loader.h conflicts with main; needs a rebase (it also touches pe_loader.cpp and loader_test.cpp, like #2499))
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

**Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `e2f9c316e` (tested at `e2f9c316e`, head is now `0cceb06ee`) - Test: not run (merge conflict with main) - Red on main: not run - Green with the PR: not run - Verdict: CONFLICT (runtime/src/pe_loader.h conflicts with main; needs a rebase (it also touches pe_loader.cpp and loader_test.cpp, like #2499)) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
zmasi commented 2026-11-28 22:40:25 +00:00

Native Windows 11 + MSVC 19.44 Verification (0cceb06ee8 + origin/main adfb3821a2)

Verdict: PASS (0 blockers, 0 /W4 warnings)

Environment & Merge Check

  • Host: Windows 11 (10.0.26200), MSVC 19.44.35228 (x64, /W4 /permissive- /utf-8 /O2 /EHsc)
  • Merge hygiene: Clean merge of rebased head 0cceb06ee8 onto origin/main (adfb3821a2, git merge-tree --write-tree rc=0), and clean combined merge alongside #1600 (runtime/src/pe_loader.cpp, runtime/test/loader_test.cpp).

Red -> Green Results

  • Red (origin/main runtime/src/pe_loader.cpp + PR #2528 runtime/src/pe_loader.h & runtime/test/loader_test.cpp):
    • Exited 1, failing all 3 forwarder-compat isolation checks:
      • FAIL a forwarder into a compat DLL that lacks the symbol is unimplemented, not shimmed: F was not left unimplemented
      • FAIL a compat DLL's missing forwarded export is not taken from a System32 namesake: the import was bound
      • FAIL a forwarder to a compat module with its own extension finds that file: the forwarded import was not bound as Host
  • Green (PR #2528 + origin/main):
    • loader_test.exe (with gta6rt_tls_host.dll, linked /OPT:NOREF /BASE:0x10000000000): PASS (120 checks, 0 failed, 10.55 s, 0 /W4 warnings).
    • test_pe_loader_bounds.exe: PASS (test_pe_loader_bounds: ALL 60 CHECKS PASSED, 0.94 s).

Diff Audit Notes

  • resolve_forwarder now matches resolve_import's LEONIDA_COMPAT_DIR lookup order and compat_miss short-circuit (so an owned compat DLL missing a forwarded export gets an unimplemented thunk instead of falling through to a shim or System32 namesake), and protect_sections uses section_file_bytes (VirtualSize == 0 -> SizeOfRawData) consistently with map_image.
  • Minor non-blocking test note: rt::section_file_bytes(0, 0x200) == 0x200 is covered via static_assert; an end-to-end synthetic VirtualSize == 0 executable section CLZERO scan case could be added later if desired.

AI-assisted.

### Native Windows 11 + MSVC `19.44` Verification (`0cceb06ee8` + `origin/main` `adfb3821a2`) **Verdict**: **PASS** (0 blockers, 0 `/W4` warnings) #### Environment & Merge Check - **Host**: Windows 11 (`10.0.26200`), MSVC `19.44.35228` (`x64`, `/W4 /permissive- /utf-8 /O2 /EHsc`) - **Merge hygiene**: Clean merge of rebased head `0cceb06ee8` onto `origin/main` (`adfb3821a2`, `git merge-tree --write-tree` `rc=0`), and clean combined merge alongside `#1600` (`runtime/src/pe_loader.cpp`, `runtime/test/loader_test.cpp`). #### Red -> Green Results - **Red** (`origin/main` `runtime/src/pe_loader.cpp` + PR `#2528` `runtime/src/pe_loader.h` & `runtime/test/loader_test.cpp`): - Exited `1`, failing all 3 forwarder-compat isolation checks: - `FAIL a forwarder into a compat DLL that lacks the symbol is unimplemented, not shimmed: F was not left unimplemented` - `FAIL a compat DLL's missing forwarded export is not taken from a System32 namesake: the import was bound` - `FAIL a forwarder to a compat module with its own extension finds that file: the forwarded import was not bound as Host` - **Green** (`PR #2528 + origin/main`): - `loader_test.exe` (with `gta6rt_tls_host.dll`, linked `/OPT:NOREF /BASE:0x10000000000`): **PASS** (`120 checks, 0 failed`, `10.55 s`, `0` `/W4` warnings). - `test_pe_loader_bounds.exe`: **PASS** (`test_pe_loader_bounds: ALL 60 CHECKS PASSED`, `0.94 s`). #### Diff Audit Notes - `resolve_forwarder` now matches `resolve_import`'s `LEONIDA_COMPAT_DIR` lookup order and `compat_miss` short-circuit (so an owned compat DLL missing a forwarded export gets an unimplemented thunk instead of falling through to a shim or `System32` namesake), and `protect_sections` uses `section_file_bytes` (`VirtualSize == 0 -> SizeOfRawData`) consistently with `map_image`. - Minor non-blocking test note: `rt::section_file_bytes(0, 0x200) == 0x200` is covered via `static_assert`; an end-to-end synthetic `VirtualSize == 0` executable section CLZERO scan case could be added later if desired. AI-assisted.
timbot103 reviewed 2026-11-29 01:06:22 +00:00
timbot103 left a comment
No description provided.
Static audit of `0cceb06ee` against `48bae6cad`. Request changes on the CLZERO scan expansion. - **Major** (`runtime/src/pe_loader.cpp:2358`, `runtime/src/clzero_patch.h:55`) The new scan range feeds zero-`VirtualSize` sections to a byte-pattern matcher that can rewrite inline data or part of an instruction. Gate rewrites on verified instruction boundaries, prefixes and entry points. - **Major** (`runtime/src/clzero_patch.h:117`) A destination fault while RCX is pushed can make Win64 unwind through saved RCX as if it were the return address. Keep affected sites on instruction emulation until stub faults can unwind correctly. - **Major, baseline** (`runtime/src/pe_loader.cpp:2076`) The bundled fallback still accepts a path after the compat lookup rejects it. Validate the forwarder module basename before any lookup. - **Minor, baseline** (`runtime/src/pe_loader.cpp:775`) The MSVC `/GA` TLS scanner still skips raw executable bytes when `VirtualSize` is zero. Reuse `section_file_bytes()` there. The new import cases cover compat precedence and owned misses. Please cover the expanded scan with a synthetic zero-`VirtualSize` PE on Windows without CLZERO, including a destination write fault. AI-assisted static review.
OreoFR commented 2026-11-29 17:29:15 +00:00

Re-verified by OreoFR at head 0cceb06ee on main 91bab934d: READY — red 3 fail → green 120 OK; ctest/link: loader and pe_loader pass, gta6rt.exe links with imports equal to main (24 DLLs, 655 functions, no WS2_32); head unchanged since the earlier verification https://github.com/ProjectLeonida/mandy/pull/2528#issuecomment-7246471800 (that one was CONFLICT; this head now merges cleanly). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5).

  • Red (main + only runtime/test/loader_test.cpp, its four section_file_bytes static_asserts left out because that helper is new in the PR's header): loader 120 checks, 3 failed, the three forwarder/compat cases (forwarder into a compat DLL missing the symbol, System32 namesake, compat module with its own extension).
  • Green (main + this PR, git merge --no-ff): ctest -R "^(loader|pe_loader)$" 2/2 pass.
  • Not run: the full ctest (machine too loaded today); only the loader targets and gta6rt were built. The loader test's "PE images are being scanned" timing guard tripped once on main and once on the merge (antivirus timing), both passed on rerun.
  • Still open: timbot103's static review of this head (CLZERO scan range on zero-VirtualSize sections) is not answered by a test here.

Ready to merge per the maintainers' plan.

**Re-verified by OreoFR** at head `0cceb06ee` on main `91bab934d`: READY — red 3 fail → green 120 OK; ctest/link: `loader` and `pe_loader` pass, `gta6rt.exe` links with imports equal to main (24 DLLs, 655 functions, no WS2_32); head unchanged since the earlier verification https://github.com/ProjectLeonida/mandy/pull/2528#issuecomment-7246471800 (that one was CONFLICT; this head now merges cleanly). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5). - Red (main + only `runtime/test/loader_test.cpp`, its four `section_file_bytes` static_asserts left out because that helper is new in the PR's header): `loader` 120 checks, 3 failed, the three forwarder/compat cases (forwarder into a compat DLL missing the symbol, System32 namesake, compat module with its own extension). - Green (main + this PR, `git merge --no-ff`): `ctest -R "^(loader|pe_loader)$"` 2/2 pass. - Not run: the full ctest (machine too loaded today); only the loader targets and gta6rt were built. The `loader` test's "PE images are being scanned" timing guard tripped once on main and once on the merge (antivirus timing), both passed on rerun. - Still open: timbot103's static review of this head (CLZERO scan range on zero-VirtualSize sections) is not answered by a test here. Ready to merge per the maintainers' plan.
KelboLive commented 2026-11-30 16:36:47 +00:00

Independent check on Windows (not the author), at 0cceb06ee.

  • Configured the branch's runtime and built loader_test (MSVC 14.52.37025, Windows SDK 10.0.26100).
  • Ran it: 120 checks, 0 failed — includes the new compat-forwarder cases (LEONIDA_COMPAT_DIR, non-ASCII module name, dependency-loaded compat DLL exports).

Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711.

AI-assisted: yes (opencode).

Independent check on Windows (not the author), at `0cceb06ee`. - Configured the branch's `runtime` and built `loader_test` (MSVC 14.52.37025, Windows SDK 10.0.26100). - Ran it: **120 checks, 0 failed** — includes the new compat-forwarder cases (`LEONIDA_COMPAT_DIR`, non-ASCII module name, dependency-loaded compat DLL exports). Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711. AI-assisted: yes (opencode).
aslan2142 commented 2026-12-01 17:26:09 +00:00

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No description provided.