XGameRuntime: fix IUnknown/sibling QI and forwarding alias isolation #1610

Open
github-bot wants to merge 1 commit from github-bot/gh-1610 into main AGit
Owner

@⁠b3IKK on GitHub · 2026-11-24 18:14 UTC · original
b3IKK:xgameruntime/api-qi-forward-and-mount-leak → main · +74 −2 · 1 files · 1 commits · open

Addresses XCL-BT-040 from #1488. Two bugs in crates/xcl/src/hle/xgameruntime/api.rs:

  • query_interface() refused IID_IUnknown on fallback objects (xcl_xasync_object, xcl_xaccessibility_object) and on non-main interface objects (XPACKAGE_V1_IID, …), and refused cross-interface QueryInterface to a sibling interface of the same COM class (e.g. XUSER → XUSER_GAMERTAG_IID).
  • QueryApiImpl shared o.pc on forwarding classes (XGAMEUI) when iid == clsid even though clsid is not in o.iface.iids, letting a shorter host vtable poison o.pc for the higher forwarded slots.

This returns the canonical identity object for IID_IUnknown (the class's main object, or this for standalone fallback objects), answers cross-interface QueryInterface for known sibling interfaces, and isolates a forwarding class's alias unless the IID asked is its single table IID.

Since the first version (#1607, group D68): the mount_with_ui_async change is gone. It mounted before the async work and so leaked on a terminated queue; #1242 mounts inside the work closure and covers that with a test, so this PR no longer competes with it.

On group D47 (#1593, #1615, and this PR): all three make QueryInterface(IUnknown) succeed. #1593 came first and is that change alone; what is left here is the sibling-interface lookup and the forwarding alias rule, neither of which the other two have. If #1593 merges first this one needs a small rebase in the same function.

What is in it

  • crates/xcl/src/hle/xgameruntime/api.rs: query_interface answers IID_IUnknown with the class's main object and looks up sibling interfaces; QueryApiImpl isolates a forwarding class's alias unless the IID is its single table IID. Tests query_interface_accepts_iunknown_and_sibling_interfaces and query_api_impl_isolates_forwarding_alias.

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 995 passed, 0 failed, 45 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, no heap windows, and cannot disable the driver cache (Windows Developer Mode is required))
  • cargo test -p xcl --lib -- hle::xgameruntime::api: 19 passed, 0 failed. Both new tests put on top of main's api.rs: 0 passed, 2 failed — IUnknown QI must succeed on xcl_xasync_object (E_NOINTERFACE) and XGAMEUI with iid == clsid must use an isolated forward alias (same pointer twice).

Regression run

main (80f4819, clean tree, no local changes):

xcl-smoke v1
commit: 80f4819098e921f2e1ab371144d4832f68ffedd6
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17779 MB

PR (d3e2053, clean tree, no local changes):

xcl-smoke v1
commit: d3e205313d8211881218b265d5b0489c3b5d3986
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1642 (PresentX 1642)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17985 MB

Not tested

  • a title that asks for IID_IUnknown or a sibling interface on these objects (the tests build the calls)
  • the forwarding alias with a host vtable shorter than XCL's (the test only shows the alias is not shared)
  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Claude Fable 5.2: audited xgameruntime/api.rs, wrote the fixes and both tests (and confirmed they fail on main's code), took the mount change out in favour of #1242, rebased onto 80f4819, ran the test suite and the scripts/smoke.ps1 runs, and drafted this PR description.
**@⁠b3IKK** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610) `b3IKK:xgameruntime/api-qi-forward-and-mount-leak` → `main` · +74 −2 · 1 files · 1 commits · open Addresses `XCL-BT-040` from #1488. Two bugs in `crates/xcl/src/hle/xgameruntime/api.rs`: - `query_interface()` refused `IID_IUnknown` on fallback objects (`xcl_xasync_object`, `xcl_xaccessibility_object`) and on non-main interface objects (`XPACKAGE_V1_IID`, …), and refused cross-interface `QueryInterface` to a sibling interface of the same COM class (e.g. `XUSER` → `XUSER_GAMERTAG_IID`). - `QueryApiImpl` shared `o.pc` on forwarding classes (`XGAMEUI`) when `iid == clsid` even though `clsid` is not in `o.iface.iids`, letting a shorter host vtable poison `o.pc` for the higher forwarded slots. This returns the canonical identity object for `IID_IUnknown` (the class's `main` object, or `this` for standalone fallback objects), answers cross-interface `QueryInterface` for known sibling interfaces, and isolates a forwarding class's alias unless the IID asked is its single table IID. **Since the first version** (#1607, group D68): the `mount_with_ui_async` change is gone. It mounted before the async work and so leaked on a terminated queue; #1242 mounts inside the work closure and covers that with a test, so this PR no longer competes with it. On group D47 (#1593, #1615, and this PR): all three make `QueryInterface(IUnknown)` succeed. #1593 came first and is that change alone; what is left here is the sibling-interface lookup and the forwarding alias rule, neither of which the other two have. If #1593 merges first this one needs a small rebase in the same function. **What is in it** - `crates/xcl/src/hle/xgameruntime/api.rs`: `query_interface` answers `IID_IUnknown` with the class's main object and looks up sibling interfaces; `QueryApiImpl` isolates a forwarding class's alias unless the IID is its single table IID. Tests `query_interface_accepts_iunknown_and_sibling_interfaces` and `query_api_impl_isolates_forwarding_alias`. **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 995 passed, 0 failed, 45 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, `no heap windows`, and `cannot disable the driver cache (Windows Developer Mode is required)`) - `cargo test -p xcl --lib -- hle::xgameruntime::api`: 19 passed, 0 failed. Both new tests put on top of `main`'s `api.rs`: 0 passed, 2 failed — `IUnknown QI must succeed on xcl_xasync_object` (`E_NOINTERFACE`) and `XGAMEUI with iid == clsid must use an isolated forward alias` (same pointer twice). **Regression run** main (`80f4819`, clean tree, no local changes): ``` xcl-smoke v1 commit: 80f4819098e921f2e1ab371144d4832f68ffedd6 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1638 (PresentX 1638) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17779 MB ``` PR (`d3e2053`, clean tree, no local changes): ``` xcl-smoke v1 commit: d3e205313d8211881218b265d5b0489c3b5d3986 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1642 (PresentX 1642) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17985 MB ``` **Not tested** - a title that asks for `IID_IUnknown` or a sibling interface on these objects (the tests build the calls) - the forwarding alias with a host vtable shorter than XCL's (the test only shows the alias is not shared) - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Claude Fable 5.2: audited `xgameruntime/api.rs`, wrote the fixes and both tests (and confirmed they fail on `main`'s code), took the mount change out in favour of #1242, rebased onto `80f4819`, ran the test suite and the `scripts/smoke.ps1` runs, and drafted this PR description.
Two bugs in hle/xgameruntime/api.rs:
- query_interface() refused IID_IUnknown on fallback objects
  (xcl_xasync_object, xcl_xaccessibility_object) and non-main interface
  objects, and refused cross-interface QI to sibling interfaces of the
  same COM class (e.g. XUSER -> XUSER_GAMERTAG_IID). Addresses XCL-BT-040
  in #1488.
- QueryApiImpl shared `o.pc` on forwarding classes (XGAMEUI) when
  `iid == clsid` even though `clsid` is not in `o.iface.iids`, letting a
  shorter host vtable poison `o.pc` for higher forwarded slots.

Accept IID_IUnknown and known sibling interfaces in query_interface(),
and isolate forwarding aliases unless `o.iface.iids == [i]`.

(An earlier version of this commit also changed mount_with_ui_async.
That is left to #1242, which mounts inside the async work and so leaks
nothing on a terminated queue either.)

Assisted-by: OpenCode (Claude Fable 5.2)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:59:16 +00:00
Author
Owner

@⁠b3IKK on GitHub · 2026-11-24 18:33 UTC · original

Good catch @⁠gut0to — updated in \4ddfd00\ so \QueryInterface(IID_IUnknown)\ always returns the canonical \main\ object for \ .clsid\ (falling back to \ his\ for standalone fallback objects like \xcl_xasync_object), and updated \query_interface_accepts_iunknown_and_sibling_interfaces\ to assert COM identity across both \XPackage/\XPackage v1\ and \XUser/\XUser gamertag. Re-ran \scripts/test.ps1\ and the 60 s \scripts/smoke.ps1\ run.

**@⁠b3IKK** on GitHub · 2026-11-24 18:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7140819289) Good catch @⁠gut0to — updated in \4ddfd00\ so \QueryInterface(IID_IUnknown)\ always returns the canonical \main\ object for \ .clsid\ (falling back to \ his\ for standalone fallback objects like \xcl_xasync_object\), and updated \query_interface_accepts_iunknown_and_sibling_interfaces\ to assert COM identity across both \XPackage\/\XPackage v1\ and \XUser\/\XUser gamertag\. Re-ran \scripts/test.ps1\ and the 60 s \scripts/smoke.ps1\ run.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 18:56 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head 4ddfd00 (on its base 9e3831e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form: 777 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: query_interface_accepts_iunknown_and_sibling_interfaces, query_api_impl_isolates_forwarding_alias_and_mount_validates_block.
  • The previous head f045aa7 (the PR was updated before the NVIDIA run above) on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 778 passed, 0 failed, 41 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • heap_window_out_of_memory_falls_back_to_the_switch_form was skipped with --skip. It fails on main 9e3831e too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWS unset). Reported as #1651.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 18:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7141368085) Full-suite run, since this PR has no test report yet. Tested exact head `4ddfd00` (on its base `9e3831e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form`: **777 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `query_interface_accepts_iunknown_and_sibling_interfaces`, `query_api_impl_isolates_forwarding_alias_and_mount_validates_block`. - The previous head `f045aa7` (the PR was updated before the NVIDIA run above) on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **778 passed, 0 failed, 41 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `heap_window_out_of_memory_falls_back_to_the_switch_form` was skipped with `--skip`. It fails on main `9e3831e` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (`XCL_HEAP_WINDOWS` unset). Reported as #1651. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 20:30 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 20:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7143647460) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 00:14 UTC · original

Rebased onto 80f4819 and reduced: the mount_with_ui_async change is out of this PR, since #1242 mounts inside the async work and covers the terminated-queue leak with a test (#1607, group D68). What is left is the QueryInterface(IUnknown) identity, the sibling-interface lookup and the forwarding alias rule; both tests fail on main's api.rs and pass here. Suite 995 passed, 0 failed, 45 ignored. The old smoke blocks were from before the split, so the two in the description are new: 80f4819 (main) and d3e2053. AI use: OpenCode, Claude Fable 5.2.

**@⁠b3IKK** on GitHub · 2026-11-25 00:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7148308282) Rebased onto `80f4819` and reduced: the `mount_with_ui_async` change is out of this PR, since #1242 mounts inside the async work and covers the terminated-queue leak with a test (#1607, group D68). What is left is the `QueryInterface(IUnknown)` identity, the sibling-interface lookup and the forwarding alias rule; both tests fail on `main`'s `api.rs` and pass here. Suite 995 passed, 0 failed, 45 ignored. The old smoke blocks were from before the split, so the two in the description are new: `80f4819` (main) and `d3e2053`. AI use: OpenCode, Claude Fable 5.2.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:08 UTC · original

PR #1610 focused Windows verification

Verified d3e205313d8211881218b265d5b0489c3b5d3986 on a clean detached checkout. The diff is confined to crates/xcl/src/hle/xgameruntime/api.rs.

Tested

  • STOR-WINLAB, Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175 (WDDM 3.2). DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized dev/test profiles with debuginfo and incremental compilation disabled.
  • cargo build --workspace and cargo test --workspace --no-run both exited 0. The latter compiled the workspace test executables.
  • cargo test -p xcl --lib xgameruntime -- --nocapture with XCL_ADAPTER=NONE_CPU_ONLY exited 0. pr1610-focused.log reports 76 passed, 0 failed, 0 ignored, 895 filtered out, and 0 lines beginning with SKIPPED . Two existing tests returned early for missing System32\xgameruntime.dll and a missing default audio endpoint. The harness includes those in the passed count.
  • query_interface_accepts_iunknown_and_sibling_interfaces verified that XAsync fallback returns its own IUnknown pointer, XPackage v1 and main share the main IUnknown pointer, and XUser can query its gamertag sibling with shared IUnknown identity.
  • query_api_impl_isolates_forwarding_alias verified that XGameUI queries by class ID and exact interface IID both succeed and return distinct XCL objects.

Not tested

Only the focused XGameRuntime unit tests ran, alongside full workspace compilation. The full GPU workspace suite and retail-title smoke runs were omitted. Host XGameUI forwarding through Gaming Services was untested.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1610-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7153494582) # PR #1610 focused Windows verification Verified `d3e205313d8211881218b265d5b0489c3b5d3986` on a clean detached checkout. The diff is confined to `crates/xcl/src/hle/xgameruntime/api.rs`. **Tested** - STOR-WINLAB, Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175 (WDDM 3.2). DXC 1.9.2609.5, rustc 1.100.0 (`0ef1bc386`, `x86_64-pc-windows-msvc`). Unoptimized dev/test profiles with debuginfo and incremental compilation disabled. - `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0. The latter compiled the workspace test executables. - `cargo test -p xcl --lib xgameruntime -- --nocapture` with `XCL_ADAPTER=NONE_CPU_ONLY` exited 0. `pr1610-focused.log` reports 76 passed, 0 failed, 0 ignored, 895 filtered out, and 0 lines beginning with `SKIPPED `. Two existing tests returned early for missing `System32\xgameruntime.dll` and a missing default audio endpoint. The harness includes those in the passed count. - `query_interface_accepts_iunknown_and_sibling_interfaces` verified that XAsync fallback returns its own `IUnknown` pointer, XPackage v1 and main share the main `IUnknown` pointer, and XUser can query its gamertag sibling with shared `IUnknown` identity. - `query_api_impl_isolates_forwarding_alias` verified that XGameUI queries by class ID and exact interface IID both succeed and return distinct XCL objects. **Not tested** Only the focused XGameRuntime unit tests ran, alongside full workspace compilation. The full GPU workspace suite and retail-title smoke runs were omitted. Host XGameUI forwarding through Gaming Services was untested. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1610-focused.log` and published.
@ -377,1 +390,4 @@
return S_OK;
}
if *iid == f.clsid || f.iids.contains(&*iid) {
*out = this as *mut c_void;
Author
Owner

@⁠gut0to on GitHub · 2026-11-24 18:19 UTC · original

For IID_IUnknown, this returns the current per-interface Obj. Since own() creates separate objects for XPACKAGE and XPACKAGE_V1_IID, querying IUnknown through those interfaces can return different pointers for the same COM object; the new test currently asserts that behavior. COM requires every interface on one object to return the same physical IUnknown pointer. Please return a canonical identity object for the class (including fallback objects) from every interface. AI-assisted review; I verified the object layout and the COM rule.

**@⁠gut0to** on GitHub · 2026-11-24 18:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#discussion_r4684569590) For `IID_IUnknown`, this returns the current per-interface `Obj`. Since `own()` creates separate objects for `XPACKAGE` and `XPACKAGE_V1_IID`, querying IUnknown through those interfaces can return different pointers for the same COM object; the new test currently asserts that behavior. COM requires every interface on one object to return the same physical IUnknown pointer. Please return a canonical identity object for the class (including fallback objects) from every interface. AI-assisted review; I verified the object layout and the COM rule.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 05:48 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 05:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#issuecomment-7183823525) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Author
Owner

@⁠gut0to on GitHub · 2026-11-24 18:19 UTC · original · reviewed

AI-assisted review; I checked the COM identity rule against Microsoft documentation.

**@⁠gut0to** on GitHub · 2026-11-24 18:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#pullrequestreview-6044925516) · **reviewed** AI-assisted review; I checked the COM identity rule against Microsoft documentation.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 22:40 UTC · original · reviewed

I see a sibling-QueryInterface alias escape in this head. QueryApiImpl routes non-table forwarding IIDs through forward_alias_obj, but the sibling-QI branch below returns own(&f.clsid, iid) directly. For a multi-IID forwarding class, that can return the merged base Obj even though the per-IID alias owns the PC pointer. forward() then sees pc == 0 on the base and falls back to unknown_slot.

Could sibling forwarding QI use the per-IID alias lookup too? A deterministic regression could QI from one XGameUi forwarding alias to a second known IID, then verify the returned object is the second IID's alias (and, if feasible without a PC runtime, verify its pc initialization path). I confirmed this from PR head d3e205313d8211881218b265d5b0489c3b5d3986; I did not execute a test locally. Codex (GPT-6) assisted with this code review.

**@⁠luckyteagirl** on GitHub · 2026-11-25 22:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1610#pullrequestreview-6065972312) · **reviewed** I see a sibling-`QueryInterface` alias escape in this head. `QueryApiImpl` routes non-table forwarding IIDs through `forward_alias_obj`, but the sibling-QI branch below returns `own(&f.clsid, iid)` directly. For a multi-IID forwarding class, that can return the merged base `Obj` even though the per-IID alias owns the PC pointer. `forward()` then sees `pc == 0` on the base and falls back to `unknown_slot`. Could sibling forwarding QI use the per-IID alias lookup too? A deterministic regression could QI from one `XGameUi` forwarding alias to a second known IID, then verify the returned object is the second IID's alias (and, if feasible without a PC runtime, verify its `pc` initialization path). I confirmed this from PR head `d3e205313d8211881218b265d5b0489c3b5d3986`; I did not execute a test locally. Codex (GPT-6) assisted with this code review.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1610/head:github-bot/gh-1610'
git switch 'github-bot/gh-1610'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1610'
git switch 'github-bot/gh-1610'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1610'
git switch 'github-bot/gh-1610'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1610'
git switch 'main'
git merge --squash 'github-bot/gh-1610'
git switch 'main'
git merge --ff-only 'github-bot/gh-1610'
git switch 'main'
git merge 'github-bot/gh-1610'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.