2 Aug
2021
2 Aug
'21
1:57 p.m.
On Fri, 30 Jul 2021 at 06:04, Conor McCarthy <cmccarthy(a)codeweavers.com> wrote:
@@ -613,6 +613,9 @@ static HRESULT d3d12_root_signature_init_root_descriptor_tables(struct d3d12_roo if (range->OffsetInDescriptorsFromTableStart != D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND) offset = range->OffsetInDescriptorsFromTableStart;
+ if (offset + range->NumDescriptors < offset) + return E_INVALIDARG; + Zebediah recently introduce the vkd3d_bound_range() helper for this kind of check; we should probably use it here as well.