{"id":17287,"url":"https://patchwork.libcamera.org/api/1.1/covers/17287/?format=json","web_url":"https://patchwork.libcamera.org/cover/17287/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220903181037.1406-1-laurent.pinchart@ideasonboard.com>","date":"2022-09-03T18:10:34","name":"[libcamera-devel,0/3] libcamera: Fix crash with UVC cameras that expose no supported format","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/17287/mbox/","series":[{"id":3466,"url":"https://patchwork.libcamera.org/api/1.1/series/3466/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3466","date":"2022-09-03T18:10:34","name":"libcamera: Fix crash with UVC cameras that expose no supported format","version":1,"mbox":"https://patchwork.libcamera.org/series/3466/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/17287/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 711B7C3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat,  3 Sep 2022 18:10:52 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id BD7666203B;\n\tSat,  3 Sep 2022 20:10:51 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9315B62033\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  3 Sep 2022 20:10:50 +0200 (CEST)","from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id DF50F4A8;\n\tSat,  3 Sep 2022 20:10:49 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1662228651;\n\tbh=eY6aaPLmti0UyBXCKaAeJeRqzUKqF0VFA/mU0p+DHhs=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=aw2FhhuAWx8x/xJILA59SiYqHMe+mvK78CLnKo7FXLbf157N7pj/D02wywm6gX4Oh\n\t9XaZMWYAaa0T5whhBIgSakz9hpWwNP3VSDGkltYW2BI2xIcEOzZBNtfUnSfCmMALI4\n\tky7pk8s2DKdXmMJgWeWiOXMSdse3xetehJjgq2Kujgr/HaAuXtK/WHm/u8oN9ZLjJY\n\t4yUZAtw8xVcppPWI21/21nvtQqLiwkKGXDizDDuYodv6Qb+v1+zH/co6wQiCFyZ4fJ\n\ttFjmoXfCCRjQhRmhmVqP/v8aIkqYlbRWeW/LgRkz8ZZ5dJ05aE8fs061wfPR47QBVc\n\tEQ5b8mDju9VMg==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1662228650;\n\tbh=eY6aaPLmti0UyBXCKaAeJeRqzUKqF0VFA/mU0p+DHhs=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=frAks5kA5cWkod+snfRh+AeJxZYJEDADJ+Ym5daS+jJYLbmygXZr+0uaJ1dVqBooP\n\tvKKitKeC0wCo7Wb3VrWRPE5qF/9GIRI+K24Rqcpix+mSG7hPCoIaRUQJ9TqxkJRfXH\n\tQVNu27oS8ByTpRPxOikZ/H/CWSh0Swbz1JwPZvEk="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"frAks5kA\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Sat,  3 Sep 2022 21:10:34 +0300","Message-Id":"<20220903181037.1406-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.35.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/3] libcamera: Fix crash with UVC cameras\n\tthat expose no supported format","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis patch series fixes a crash in the uvcvideo pipeline handler with\ncameras that exposes only formats that are not supported by libcamera.\nPatches 1/3 and 2/3 perform small refactoring, to prepare for patch 3/3\nthat fixes the crash by rejecting those cameras.\n\nLaurent Pinchart (3):\n  pipeline: uvcvideo: Move camera ID generation to UVCCameraData class\n  pipeline: uvcvideo: Cache supported formats in UVCCameraData\n  pipeline: uvcvideo: Fail match() if the camera has no supported format\n\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 200 ++++++++++---------\n 1 file changed, 107 insertions(+), 93 deletions(-)\n\n\nbase-commit: 251f0534b74bcb46c777aa0df34b1b4142b664f5"}