GPU: validate null args in create_deserializer to prevent d3d12 AV and add root.rs tests #1078
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1078
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@geiyiliyabumo on GitHub · 2026-11-24 15:31 UTC · original
Summary
Fixes a real access-violation crash (
0xc0000005ind3d12.dll) increate_deserializerincrates/victory-gpu/src/root.rsand expands deterministic synthetic unit tests from 3 to 11 passing tests.Because external PR creation is currently restricted (
collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:geiyiliyabumo/VIctory@test/gpu-root-auditgeiyiliyabumo/VIctory@ef0c3e9(based onmainffe310e)Changes (
crates/victory-gpu/src/root.rs)create_deserializerpreviously forwarded a nullriidstraight to hostD3D12CreateRootSignatureDeserializer, crashing withSTATUS_ACCESS_VIOLATION. It now rejects null blob,size == 0, nullriid, and nulloutwithE_INVALIDARGbefore calling the host.Desc/VersionedDesc, console-flag masking, null-desc rejection on both serializers, deserializer null-arg crash regression,createIID/null-out probing, all 3 IIDs + refcount lifecycle, vtable slots0x28/0x30/0x38, and host rejection of truncated/garbage blobs.Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check crates/victory-gpu/src/root.rs: PASScargo xtask policy: PASS (154 files ok)cargo clippy -p victory-gpu --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-gpu --locked -- root::: 11 passed, 0 failedAI-assisted; synthetic tests only, no game files.