linux/drivers/media
Mauro Carvalho Chehab e5411f2653 media: dw2102: fix a potential buffer overflow
commit 1c73d0b29d upstream.

As pointed by smatch:
	 drivers/media/usb/dvb-usb/dw2102.c:802 su3000_i2c_transfer() error: __builtin_memcpy() '&state->data[4]' too small (64 vs 67)

That seemss to be due to a wrong copy-and-paste.

Fixes: 0e148a522b ("media: dw2102: Don't translate i2c read into write")

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-07-11 12:47:16 +02:00
..
cec media: cec: core: avoid confusing "transmit timed out" message 2024-06-12 11:03:48 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:20:46 -04:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:31:49 +02:00
dvb-frontends media: dvb-frontends: tda10048: Fix integer overflow 2024-07-11 12:47:08 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:20:45 -04:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:41:35 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: ipu3-cio2: Request IRQ earlier 2024-06-12 11:03:24 +02:00
platform media: sunxi: a83-mips-csi2: also select GENERIC_PHY 2024-06-12 11:03:48 +02:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-12 11:03:24 +02:00
rc media: rc: bpf attach/detach requires write permission 2024-02-23 09:12:41 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 17:07:02 +00:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-03 15:19:25 +02:00
usb media: dw2102: fix a potential buffer overflow 2024-07-11 12:47:16 +02:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:41:35 +02:00
Kconfig media: remove reference to CONFIG_EMBEDDED in MEDIA_SUPPORT_FILTER 2022-09-08 18:19:29 +02:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00