D3D12.X: dev_create_descriptor_heap_x dereferences NULL ppv on S_FALSE validation calls #2401
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2401
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?
@ahmetbagci8 on GitHub · 2026-11-25 17:48 UTC · original
Summary
In
crates/xcl/src/hle/d3d12x/real.rs(dev_create_descriptor_heap_x, lines 1089-1093):In D3D12, calling
ID3D12Device::CreateDescriptorHeapwithppvHeap == NULLis a documented parameter-validation call that succeeds withS_FALSE(1, which satisfieshr >= 0). Whiledev_create_descriptor_heapguards!ppv.is_null() && !(*ppv).is_null(),dev_create_descriptor_heap_xonly checkshr >= 0and immediately dereferences*ppv(NULL pointer dereference / access violation).Suggested fix
Not tested
082944135cd2b96288470a595861fa608eee08dcwithout a new runtime test.AI use
real.rsand drafted this report; the author reviewed it before posting.github-bot referenced this issue2026-11-26 05:31:03 +00:00