Re: [PATCH] media: dvb_vb2: fix possible out of bound access

From: Sergey Senozhatsky
Date: Thu Mar 24 2022 - 06:23:29 EST


On (22/03/24 16:01), Hangyu Hua wrote:
> vb2_core_qbuf and vb2_core_querybuf don't check the range of b->index
> controlled by the user.
>
> Fix this by adding range checking code before using them.
>
> Signed-off-by: Hangyu Hua <hbh25y@xxxxxxxxx>

Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>