linux/drivers/media
Mauro Carvalho Chehab feef460321 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-18 13:07:34 +02:00
..
cec media: cec: core: add adap_nb_transmit_canceled() callback 2024-06-16 13:39:53 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:21:26 -04:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:14:44 +02:00
dvb-frontends media: dvb-frontends: tda10048: Fix integer overflow 2024-07-18 13:07:28 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:13:30 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:21:25 -04:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:39:56 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: ipu3-cio2: Request IRQ earlier 2024-06-16 13:39:29 +02:00
platform media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:21:30 -04:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-16 13:39:28 +02:00
rc media: rc: bpf attach/detach requires write permission 2024-02-23 08:55:07 +01:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 19:16:27 +01:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 16:56:20 +00:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-10 16:18:34 +02:00
usb media: dw2102: fix a potential buffer overflow 2024-07-18 13:07:34 +02:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:39:57 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 11:05:20 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00