aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2026-09-11 13:23:50 +0000
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-10-02 08:41:34 +0200
commit7fa44c2c123c17c4a3856ffac5e384409267cced (patch)
tree06ca74bf424cf1f967b1df999e22b89815f5cb57 /scripts/Makefile.thinlto
parentmedia: uvcvideo: Fix up missing AUTO_UPDATE on the OBSBOT Tail 2 (diff)
media: uvcvideo: Bound uvc_parse_*_control to the control size
uvc_parse_control() passes descriptor by descriptor to uvc_parse_standard_control() with the number of bytes remaining in the buffer, not the number of bytes of that descriptor. Because of this, malformed descriptors could leak over the next descriptor, leaving malformed data in our structures. Change the code so we pass the actual length of the descriptor to the parser. Note that this makes the existing check more strict and some devices that are wrongly parsed today will not be probed now. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://patch.msgid.link/20260911-uvc-ctrl-bound-v1-1-7b5cfc68bae1@chromium.org Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions