linux_dsm_epyc7002/drivers/media/usb
Colin Ian King 32ae592036 media: cx231xx: fix potential sign-extension overflow on large shift
Shifting the u8 value[3] by an int can lead to sign-extension
overflow. For example, if value[3] is 0xff and the shift is 24 then it
is promoted to int and then the top bit is sign-extended so that all
upper 32 bits are set.  Fix this by casting value[3] to a u32 before
the shift.

Detected by CoverityScan, CID#1016522 ("Unintended sign extension")

Fixes: e0d3bafd02 ("V4L/DVB (10954): Add cx231xx USB driver")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-09 08:05:48 -04:00
..
airspy media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros 2018-10-04 14:22:27 -04:00
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cpia2 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
cx231xx media: cx231xx: fix potential sign-extension overflow on large shift 2018-10-09 08:05:48 -04:00
dvb-usb media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
dvb-usb-v2 Revert "media: dvbsky: use just one mutex for serializing device R/W ops" 2018-10-05 11:04:39 -04:00
em28xx media: em28xx: make v4l2-compliance happier by starting sequence on zero 2018-09-17 13:15:09 -04:00
go7007 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
gspca media: gspca: sq930x: use GFP_KERNEL in sd_dq_callback() 2018-09-12 08:01:30 -04:00
hackrf media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
hdpvr media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
msi2500 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
pulse8-cec media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
pvrusb2 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
pwc media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
rainshadow-cec media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
s2255 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
siano media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
stk1160 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
stkwebcam media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
tm6000 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
ttusb-budget media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
ttusb-dec media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
usbtv media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
usbvision media: usbvision: remove time_in_irq 2018-09-12 08:02:25 -04:00
uvc media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
zr364xx media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00