Skip to content

Skip parsing frames of type UVC_VS_UNDEFINED in

Benoit Sevens linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_formatdrivers/media/usb/uvc/uvc_driver.c+1 -13 replies
2/2media: uvcvideo: Refactor frame parsing code into a uvc_parse_frame functiondrivers/media/usb/uvc/uvc_driver.c+123 -1052 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGreg Kroah-HartmanLaurent Pinchart
1/2A-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Skip parsing frames of type UVC_VS_UNDEFINED in

This can lead to out of bounds writes since frames of this type were not taken into account when calculating the size of the frames buffer in uvc_parse_streaming.

I am proposing a series of 2 patches. First patch is very small and fixes the issue. The idea is to have this patch merged quickly.

The second patch refactors the code into a new uvc_parse_frame function.

I do not have the hardware setup to test this out. The second patch should definitely be tested.

Benoit Sevens (2):
media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in
uvc_parse_format
media: uvcvideo: Refactor frame parsing code into a uvc_parse_frame
function

 drivers/media/usb/uvc/uvc_driver.c | 228 ++++++++++++++++-------------
 1 file changed, 123 insertions(+), 105 deletions(-)
Signature · 1 line
2.47.0.277.g8800431eea-goog