[PATCH vkd3d 3/7] vkd3d: Return E_INVALIDARG if a descriptor range overflows.

Henri Verbeet hverbeet at gmail.com
Mon Aug 2 08:57:03 CDT 2021


On Fri, 30 Jul 2021 at 06:04, Conor McCarthy <cmccarthy at 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.



More information about the wine-devel mailing list