WSL2-Linux-Kernel/drivers/media/dvb-core
Hangyu Hua 3723869907 media: dvb_vb2: fix possible out of bound access
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.

Fixes: 57868acc36 ("media: videobuf2: Add new uAPI for DVB streaming I/O")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-09-27 10:24:44 +02:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile
dmxdev.c media: dvb-core: Convert to SPDX identifier 2021-11-19 15:22:13 +00:00
dvb_ca_en50221.c
dvb_demux.c media: dvb-core: Convert to SPDX identifier 2021-11-19 15:22:13 +00:00
dvb_frontend.c media: dvb-core: dvb_frontend: address some clang warnings 2021-11-29 10:15:04 +01:00
dvb_math.c
dvb_net.c
dvb_ringbuffer.c
dvb_vb2.c media: dvb_vb2: fix possible out of bound access 2022-09-27 10:24:44 +02:00
dvbdev.c media: dvb-core: Convert to SPDX identifier 2021-11-19 15:22:13 +00:00