mirror-linux/drivers/media
Gustavo A. R. Silva dca4f5fdbc media: usb: pwc-uncompress: Use struct_size() helper in pwc_decompress()
Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worst scenario, could lead to heap overflows.

Also, address the following sparse warnings:
drivers/media/usb/pwc/pwc-uncompress.c:44:44: warning: using sizeof on a flexible structure

Link: https://github.com/KSPP/linux/issues/174
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-02-22 09:41:11 +01:00
..
cec media: platform: cros-ec: Add brask to the match table 2022-01-23 21:18:42 +01:00
common media: saa7146: fix error logic at saa7146_vv_init() 2021-12-14 15:09:14 +01:00
dvb-core media: dvb-core: dvb_frontend: address some clang warnings 2021-11-29 10:15:04 +01:00
dvb-frontends media: media si2168: Fix spelling mistake "previsously" -> "previously" 2021-12-07 11:29:57 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: i2c: ov08d10: Unlock on error in ov08d10_enum_frame_size() 2022-02-17 10:00:21 +01:00
mc bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
mmc
pci media: rc-core: rename ir_raw_event_reset to ir_raw_event_overflow 2022-01-28 19:32:50 +01:00
platform media: platform: mtk-vcodec: Do not force /dev/videoX node number 2022-02-22 09:41:11 +01:00
radio media: media/radio: make array probe_ports static const 2022-01-23 21:18:43 +01:00
rc media: lirc: report ir receiver overflow 2022-01-28 19:32:50 +01:00
spi media: cxd2880: Eliminate dead code 2021-12-07 11:29:57 +01:00
test-drivers media: vimc: Add support for contiguous DMA buffers 2022-02-16 12:47:02 +01:00
tuners media: si2157: add support for DVB-C Annex C 2022-01-10 15:56:50 +01:00
usb media: usb: pwc-uncompress: Use struct_size() helper in pwc_decompress() 2022-02-22 09:41:11 +01:00
v4l2-core media: v4l2-mediabus: Drop V4L2_MBUS_CSI2_CONTINUOUS_CLOCK flag 2022-02-17 09:54:26 +01:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2021-11-15 08:12:06 +00:00
Makefile