RE: [PATCH] usb: uvc: Fix 1-byte out-of-bounds read in uvc_parse_format()
From: yjjuny.lee
Date: Tue Jun 10 2025 - 08:34:29 EST
Hi Ricardo Ribalda
> I think it makes more sense to add the length check where it is going to be used not on a caller function. If we every change
> uvc_parse_format to read byte #5 we will probably miss the check on
> uvc_parse_streaming()
I agree. Moving the length check into the function itself is a better approach.
I'll send v2 patch.