Re: [PATCH v4] usb: gadget: aspeed_udc: validate endpoint index for ast udc

Andrew Jeffery
2024-06-26T00:08:17Z

On Tue, 2024-06-25 at 10:23 +0800, Ma Ke wrote:
> We should verify the bound of the array to assure that host
> may not manipulate the index to point past endpoint array.
>
> Found by static analysis.
>
> Signed-off-by: Ma Ke <make24@iscas.ac.cn>

Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>