linux/drivers/media/usb/pwc
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
..
Kconfig
Makefile
pwc-ctrl.c
pwc-dec1.c
pwc-dec1.h
pwc-dec23.c media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
pwc-dec23.h
pwc-if.c media: media/usb:Remove superfluous "breaks" 2021-03-11 11:59:43 +01:00
pwc-kiara.c
pwc-kiara.h
pwc-misc.c
pwc-nala.h
pwc-timon.c
pwc-timon.h
pwc-uncompress.c media: usb: pwc-uncompress: Use struct_size() helper in pwc_decompress() 2022-02-22 09:41:11 +01:00
pwc-v4l.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
pwc.h media: pwc: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00