[libcamera-devel] [PATCH 0/3] libcamera: Fix crash with UVC cameras that expose no supported format

Umang Jain umang.jain at ideasonboard.com
Mon Sep 5 12:56:37 CEST 2022


Hi Laurent,

Thank you for the series,

On 9/3/22 11:40 PM, Laurent Pinchart via libcamera-devel wrote:
> Hello,
>
> This patch series fixes a crash in the uvcvideo pipeline handler with
> cameras that exposes only formats that are not supported by libcamera.
> Patches 1/3 and 2/3 perform small refactoring, to prepare for patch 3/3
> that fixes the crash by rejecting those cameras.
>
> Laurent Pinchart (3):
>    pipeline: uvcvideo: Move camera ID generation to UVCCameraData class
>    pipeline: uvcvideo: Cache supported formats in UVCCameraData
>    pipeline: uvcvideo: Fail match() if the camera has no supported format

For all the above patches,

Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>

>
>   src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 200 ++++++++++---------
>   1 file changed, 107 insertions(+), 93 deletions(-)
>
>
> base-commit: 251f0534b74bcb46c777aa0df34b1b4142b664f5



More information about the libcamera-devel mailing list