[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <000401dbda03$d86b7680$89426380$@samsung.com>
Date: Tue, 10 Jun 2025 21:33:18 +0900
From: <yjjuny.lee@...sung.com>
To: "'Ricardo Ribalda'" <ribalda@...omium.org>
Cc: <laurent.pinchart@...asonboard.com>, <hdegoede@...hat.com>,
<mchehab@...nel.org>, <linux-media@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <yjjuny.lee@...sung.com>
Subject: RE: [PATCH] usb: uvc: Fix 1-byte out-of-bounds read in
uvc_parse_format()
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.
Powered by blists - more mailing lists