Re: [PATCH v4] usb: gadget: aspeed_udc: validate endpoint index for ast udc
From: Andrew Jeffery
Date: Tue Jun 25 2024 - 20:08:00 EST
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@xxxxxxxxxxx>
Reviewed-by: Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>