kernel_optimize_test/drivers/media/tuners
Colin Ian King 1f743e8d58 media: m88rs6000t: avoid potential out-of-bounds reads on arrays
[ Upstream commit 9baa3d64e8e2373ddd11c346439e5dfccb2cbb0d ]

There a 3 array for-loops that don't check the upper bounds of the
index into arrays and this may lead to potential out-of-bounds
reads.  Fix this by adding array size upper bounds checks to be
full safe.

Addresses-Coverity: ("Out-of-bounds read")

Link: https://lore.kernel.org/linux-media/20201007121628.20676-1-colin.king@canonical.com
Fixes: 333829110f ("[media] m88rs6000t: add new dvb-s/s2 tuner for integrated chip M88RS6000")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:23 +02:00
..
e4000_priv.h
e4000.c
e4000.h
fc001x-common.h
fc0011.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
fc0011.h
fc0012-priv.h
fc0012.c
fc0012.h
fc0013-priv.h
fc0013.c
fc0013.h
fc2580_priv.h
fc2580.c
fc2580.h
it913x.c
it913x.h
Kconfig media: tuners: Kconfig: add some missing VIDEO_V4L2 dependencies 2020-04-23 07:57:27 +02:00
m88rs6000t.c media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-05-14 09:50:23 +02:00
m88rs6000t.h
Makefile
max2165_priv.h
max2165.c
max2165.h
mc44s803_priv.h
mc44s803.c
mc44s803.h
msi001.c
mt20xx.c
mt20xx.h
mt2060_priv.h
mt2060.c
mt2060.h
mt2063.c
mt2063.h
mt2131_priv.h
mt2131.c
mt2131.h
mt2266.c
mt2266.h
mxl301rf.c
mxl301rf.h
mxl5005s.c
mxl5005s.h
mxl5007t.c
mxl5007t.h
qm1d1b0004.c
qm1d1b0004.h
qm1d1c0042.c media: qm1d1c0042: fix error return code in qm1d1c0042_init() 2021-03-04 11:37:43 +01:00
qm1d1c0042.h
qt1010_priv.h
qt1010.c media: qt1010: fix usage of unititialized value 2020-09-03 11:07:57 +02:00
qt1010.h
r820t.c
r820t.h
si2157_priv.h media: si2157: Add analog tuning related functions 2020-04-21 16:46:25 +02:00
si2157.c media: si2157: ensure wait_status is initialized 2020-04-29 11:59:57 +02:00
si2157.h
tda827x.c
tda827x.h
tda8290.c
tda8290.h
tda9887.c
tda9887.h
tda18212.c
tda18212.h
tda18218_priv.h
tda18218.c
tda18218.h
tda18250_priv.h
tda18250.c
tda18250.h
tda18271-common.c
tda18271-fe.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
tda18271-maps.c
tda18271-priv.h
tda18271.h
tea5761.c
tea5761.h
tea5767.c
tea5767.h
tua9001_priv.h
tua9001.c
tua9001.h
tuner-i2c.h
tuner-simple.c media: tuner-simple: fix regression in simple_set_radio_freq 2020-08-26 18:51:50 +02:00
tuner-simple.h
tuner-types.c
tuner-xc2028-types.h
tuner-xc2028.c
tuner-xc2028.h
xc4000.c
xc4000.h
xc5000.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
xc5000.h