On Fri, 21 Feb 2020 at 05:57, Zebediah Figura <z.figura12 at gmail.com> wrote: > + if (!constants || start_idx >= WINED3D_MAX_PS_CONSTS_F || start_idx + count > WINED3D_MAX_PS_CONSTS_F) > + return WINED3DERR_INVALIDCALL; "start_idx + count" can potentially overflow.