linux_dsm_epyc7002/drivers/media/usb/uvc
Nicolas Dufresne 95f5cbff90 media: uvcvideo: Also validate buffers in BULK mode
Just like for ISOC, validate the decoded BULK buffer size when possible.
This avoids sending corrupted or partial buffers to userspace, which may
lead to application crash or run-time failure.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
[laurent.pinchart@ideasonboard.com: Move uvc_video_validate_buffer() call to uvc_video_next_buffers()]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-07-27 06:39:57 -04:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: uvcvideo: Fix minor spelling 2018-07-27 06:39:57 -04:00
uvc_debugfs.c [media] uvcvideo: Change result code of debugfs_init to void 2017-01-31 10:56:48 -02:00
uvc_driver.c media: uvcvideo: Add KSMedia 8-bit IR format support 2018-07-27 06:39:57 -04:00
uvc_entity.c media: uvcvideo: Constify video_subdev structures 2017-08-20 08:10:24 -04:00
uvc_isight.c media: uvcvideo: Use internal kernel integer types 2018-02-23 02:20:52 -05:00
uvc_metadata.c media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_queue.c media updates for v4.16-rc1 2018-02-06 11:27:48 -08:00
uvc_status.c media: uvcvideo: Use internal kernel integer types 2018-02-23 02:20:52 -05:00
uvc_v4l2.c media: uvc: to the right check at uvc_ioctl_enum_framesizes() 2018-03-23 08:37:27 -04:00
uvc_video.c media: uvcvideo: Also validate buffers in BULK mode 2018-07-27 06:39:57 -04:00
uvcvideo.h media: uvcvideo: Add KSMedia 8-bit IR format support 2018-07-27 06:39:57 -04:00