GPU: validate null args in create_deserializer to prevent d3d12 AV and add root.rs tests #1206

Merged
geiyiliyabumo merged 1 commit from upstream-pr/1206 into main 2026-11-25 00:13:29 +00:00
geiyiliyabumo commented 2026-11-24 16:25:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:25:38Z.


Summary

Closes #1078

Full verification details and change notes are documented in #1078 (commit ef0c3e9, based on main ffe310e).

 crates/victory-gpu/src/root.rs | 262 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 260 insertions(+), 2 deletions(-)

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check on edited files: PASS
  • cargo xtask policy: PASS (zero game files/data)
  • cargo clippy --all-targets --locked -- -D warnings (default + --features diagnostics where applicable): PASS
  • Targeted & crate unit/GPU tests: PASS

AI-assisted; synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6586463733 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1206). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T16:25:38Z. --- ### Summary Closes #1078 Full verification details and change notes are documented in #1078 (commit `ef0c3e9`, based on `main` `ffe310e`). ```text crates/victory-gpu/src/root.rs | 262 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 260 insertions(+), 2 deletions(-) ``` ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check` on edited files: **PASS** - `cargo xtask policy`: **PASS** (zero game files/data) - `cargo clippy --all-targets --locked -- -D warnings` (default + `--features diagnostics` where applicable): **PASS** - Targeted & crate unit/GPU tests: **PASS** *AI-assisted; synthetic tests only, no game files.*
Zipettte commented 2026-11-24 18:06:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:07Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at ef0c3e9: cargo test -p victory-gpu passes, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140013184 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1206#issuecomment-7140013184). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T18:00:07Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at ef0c3e9: `cargo test -p victory-gpu` passes, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
mercuryVM commented 2026-11-24 19:02:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T18:11:20Z.

Review: APPROVED


Tested ef0c3e94 on Windows 11, RTX 5070, MSVC:

  • cargo test -p victory-gpu passes on the head (58 passed, 1 ignored).
  • Merged into our fork: workspace tests, shader tests and clippy -D warnings (default and all features) are all clean.

Rejecting a null iid, which the host dereferences unchecked, and an empty blob before forwarding is right. The new layout tests pin the 64-bit Desc/VersionedDesc offsets, and the flag tests pin without_console_flags.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6044806688 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1206#pullrequestreview-6044806688). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T18:11:20Z. **Review:** APPROVED --- Tested ef0c3e94 on Windows 11, RTX 5070, MSVC: - `cargo test -p victory-gpu` passes on the head (58 passed, 1 ignored). - Merged into our fork: workspace tests, shader tests and `clippy -D warnings` (default and all features) are all clean. Rejecting a null `iid`, which the host dereferences unchecked, and an empty blob before forwarding is right. The new layout tests pin the 64-bit `Desc`/`VersionedDesc` offsets, and the flag tests pin `without_console_flags`. AI-assisted (Claude Code).
upstream-sync closed this pull request 2026-11-25 01:05:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
Marvisak/VIctory!1206
No description provided.