D3D12.X: dev_create_descriptor_heap_x dereferences NULL ppv on S_FALSE validation calls #2391
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?
Imported from ivall/xcl. Originally posted by ahmetbagci8 on 2026-11-25T17:48:32Z.
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.