linux/drivers/media/usb/uvc
Laurent Pinchart 171994e498 media: uvcvideo: Silence shift-out-of-bounds warning
UBSAN reports a shift-out-of-bounds warning in uvc_get_le_value(). The
report is correct, but the issue should be harmless as the computed
value isn't used when the shift is negative. This may however cause
incorrect behaviour if a negative shift could generate adverse side
effects (such as a trap on some architectures for instance).

Regardless of whether that may happen or not, silence the warning as a
full WARN backtrace isn't nice.

Reported-by: Bart Van Assche <bvanassche@acm.org>
Fixes: c0efd23292 ("V4L/DVB (8145a): USB Video Class driver")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-10 14:06:27 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
uvc_ctrl.c media: uvcvideo: Silence shift-out-of-bounds warning 2020-09-10 14:06:27 +02:00
uvc_debugfs.c media: uvcvideo: drop error check of debugfs_create_dir() 2019-11-14 11:16:34 +08:00
uvc_driver.c media: uvcvideo: Replace HTTP links with HTTPS ones 2020-09-10 14:06:27 +02:00
uvc_entity.c media: uvcvideo: Set media controller entity functions 2020-09-10 14:06:27 +02:00
uvc_isight.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uvc_metadata.c media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE 2019-10-16 16:34:34 -03:00
uvc_queue.c media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE 2019-10-16 16:34:34 -03:00
uvc_status.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uvc_v4l2.c media: drivers/media: don't set pix->priv = 0 2019-07-23 08:48:33 -04:00
uvc_video.c media: uvcvideo: Fix annotation for uvc_video_clock_update() 2020-09-10 14:06:27 +02:00
uvcvideo.h media: uvcvideo: Add mapping for HEVC payloads 2020-09-10 14:06:27 +02:00