From patchwork Thu Sep 8 18:48:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Roumegue X-Patchwork-Id: 17350 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B965AC3272 for ; Thu, 8 Sep 2022 18:49:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BB817620DD; Thu, 8 Sep 2022 20:49:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1662662966; bh=HYnM7arI2BQclGbfjkjv1YMR7isLuHspx6GtdKEmdm0=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=GRAOQuld/rlBPIloKT3Fh2PBT6VyWCYgpCfCwgEivmRxuKWwGKUiN/6Zyxoj4ATiw g8KP9yyiufTGbfcaWWfD20QP5F7mDNl9oA2ai+sLM1zW+QZzW7cEgc8GCfqLdtScfu nz7oKo6T6cAR1oG+mEPCsPWeWnzeHsArIZ/TwZiZDycNrtaDjjGj4fiWggt1IpPzVi HS+ACqtWcMhcUjzrEORih2p42dnBpFozpVAAPKi1b1orwRBdH6gmn7Wje6JlfJrdHR oD8P62Sx2AubOZt/qwnncpDl3QY7GRpd1CMx7xhFnl3njRGcI7LrIS8+QlXq8zuXpU u8pqbTw8cQx3g== Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60040.outbound.protection.outlook.com [40.107.6.40]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6DE62620BC for ; Thu, 8 Sep 2022 20:49:21 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="PxnH/HJr"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZAYFo1GQV8X+0nxqxlHqh6K4rMX7uu6QxvWM+NUy4Mlijrpi7UVM5BFlcpILh99PcIEMIb3LWJHoK8xGOMH5MiPDZPjuBwJKBuGGD1W83wobC69dAP58y9kKjn/zCc7g9sArSip11fefOd2cLKz8T8HZi/P+KcRRrBG6FOGWlvCdRORUsI9QoUjFfiu1z6RxOnf7flyibVm0WF3MJaqN7SaUoSU2jlx+6QgmGyTKKMv3viqJyQoF1Ue+fjgJvJV1Wf6Nb5RZP7GVA3+wfmP7vUUZL33t15OrDv1NI5sm8Mkuqh1gUFEKC4BqVx+UaAdLsBV5/YEu3hQOF8+P9LXXRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=39cHtImZCt/FDt7TruEu2qcr3S6tjY8TWLTpVB3KQxU=; b=EsOLGG0UZSazPMuwX8wRp5JwvizvbwNTK5XVGFbFegm7UvcSYz+1kuKYiDkBrI2hiyo79GFEBkkW/dFLBtKa3lQmu91I0wcc42shRn9f25UiTOzqL0H+9Bc0DL7s7AQVqTdRvZ9dHM05i4YjM8Ur1FlvLsHVfbBo8C5HdOvBw4+ojl0n9rij8LvxisgYriLowePdv2PU2sxqWsWpTu/raWaFTli/v8jh16zQlrIuUeEMxnLShYf2iUgfJqJHXYTJTMVf5U32eHSz30h2lMO2HG509whlP2Iua2VvmY6khJaEsOVJYRN1zgU3WL2up0SLLNw3Nfvy7RdUyxdjq8A4Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=39cHtImZCt/FDt7TruEu2qcr3S6tjY8TWLTpVB3KQxU=; b=PxnH/HJr7HyNhVoaKBRhPa22Vwe9ouf9Bb1+6orefvZs63VjrQYIZPYb65OEgjcmHOtwFcTgEBavk3aMPiZl8shK75a0O3R+2uDMc9c2Pmip8R4IP5mWZakT33jBBXG89KsWtwZHLz3hi9Y/ZECFEquJFJ56C2rQH6H3UEMSVAw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) by AS8PR04MB8852.eurprd04.prod.outlook.com (2603:10a6:20b:42f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.19; Thu, 8 Sep 2022 18:49:20 +0000 Received: from PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::485:adba:7081:715a]) by PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::485:adba:7081:715a%3]) with mapi id 15.20.5612.019; Thu, 8 Sep 2022 18:49:20 +0000 To: libcamera-devel@lists.libcamera.org Date: Thu, 8 Sep 2022 20:48:44 +0200 Message-Id: <20220908184850.1874303-9-xavier.roumegue@oss.nxp.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220908184850.1874303-1-xavier.roumegue@oss.nxp.com> References: <20220908184850.1874303-1-xavier.roumegue@oss.nxp.com> X-ClientProxiedBy: PR3P250CA0001.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:57::6) To PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8703:EE_|AS8PR04MB8852:EE_ X-MS-Office365-Filtering-Correlation-Id: 3beadae5-f31d-4520-b420-08da91cad6e6 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 93rZwSUCtu7oWw93Y4j/rrHvoYvBOokEa1pysRlvfw0yqkz5qM6dTgHcRVK0zPSQNBHaVQQ7fMHAbhCNZJB9fGh32toZjHGASZUQ7ZMm4aN8KEpz2wVHtVrNv5eGqjThxreeyYzxNs2NpGnSBJHUFo9og5Wy4C2rZkdksXhvmIsGAl+8dMvwPrOXvpctt3SuPNnVSp6r6GM5/YJoruKh7Y4otg3fxby1DuTx4otE7Mfjb4XEUxsKukCm+YMYwCvDz3wdsr/39XV/mXgU1kS59EyaLDOSOETyTvUJzE37Lye1oRMs3lQprxjAlFwxVKtf6/NDAeO1CEgzCcHrf+DeWeeO9uqNEZzSebg6/zoevHUU90Ueohw4qbrWOXORNbsgrv9BicIj94PTDEWs4Np/9hjGyRzGBVQci64It2oCGN1KUwjkwMx7PqqGFUy9liWRpX3C0KJ3FNMJAcz5EfZcK1rhOQ6eIbvJNqUY5K8wpnzG5/nClEkhh3ojuxzEOkTh1wrcRK966OkoRCQUKWjtY1IMo5yQO+Qk1luSeAUrGeLGbTifEEiwDtsh8PuIEXnG/BA/uhKqi40/mf2PdNyZHh8118kBRO3zv8bmiu2NwzqsDnfju0g2ldMFOey1UkI7PK/dgdVMTllGUCcLkAQn23gY/fCazl9nB8ng5wTeomN/qN3eDMxRl0c32s0XAnkaLPpB1YBH1vBNdJkmG0d+fg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8703.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(346002)(376002)(396003)(136003)(366004)(38100700002)(66556008)(66476007)(66946007)(8936002)(4744005)(44832011)(5660300002)(4326008)(8676002)(6916009)(316002)(41300700001)(186003)(1076003)(2616005)(2906002)(478600001)(6666004)(86362001)(6512007)(52116002)(6506007)(83380400001)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hWahOasdBAcIQNtBRFwU0X6DDY5t7NfKD2LZAOiGQ9hdw4hoEcTpfxmoWqtGfXFw0MUWYdgKFzf5+sNZovfE7JFhFn+Yscg+zPHwDl6TD/4qpiEiRualqh/G9TWq9KirQsaveGSJINdqJxcUlUqtP2f7xQYYjPxwI4N2Wz/U7H4esTKP2qnMdrxHCCRCYpTKiZsnkNzwfeGwByj8fL5LhX8qXUU6RgAhAen5PXJMvc+oeYPfb1cEyHtNnB7SVsGgx6IwO933qANRxwlQPLGbg2xV1tg46B3EfTZQhDrUzIUSdy9sNvXU9dzCDiIGK2GbQO/n83MDKj6nELeheZ1xAadMCrKzzA/U6fs8NJz3TTunB6Uu007uk1nhI31Bz9oRmPwQnPB8mHcEVp3WRgIgxZKmUxVFEKTzwggftsPQ5wisd7c8md88rotvkZwHy9QLEbY+CnR47tb06PgdFKmVJl+7VlYQv9uEYZkUZmtkNLQs6patiJysY88She2w1aUCQYWwTmTN3H2zot+OQafcpdkjMpusDyViZrg6+IpVL6XETgdEKY3eb2FOZYAV/DyUHs7Tc9DpvkMmI/JaAZoznMd4QfYXjQw9wb/E+eel11T7NmYHpoMtQByxj6kjEO+E6sZzpakpgxMP+OHa7yX/nYc5+SH0KEt1dDVvAK2ns7X6yEwvGpZ0DkmrknNKyx0RHpaZLxikOrosRXKfP2HLcCR1D4pTrDR/kWtPHRodb5P3nuLpkO1pK4gQP3LZba2/bA9IbBCvIdxQPCptFLWMQbkjxar3W+1Yi/lf0f5mDINXTd5jDIkQ1rGb9Wn1/HFQFRp0nKZBjOHj+m/blV85OJ4GrjkHK51MwNPlfqb+5xIx+QAScCv6i8Jhimy+dDPk7U0sH0Yh49k6TQNY2qWrphRzaLTiBLfRGOjcf4kMFw7PnoHsNVVWUFEytEFI06JP+VprHdZ8zIHY5HkScxldgfrCkmPM1Hz6nU7rBZ140L5F2wP5PQ6C7JnFHJ7eXmJEoUP8yor3Vuq0eIKSbOfXKckyqpZ/Yut+JyMexB8SLXg6HbNvAr5gHVyJh6DYh6CbVRsItqhvkAH97dynHAWJ6HairvVIvkIryGI7BQJkg37k7GaFVZUO1phfyZhyAm1ehbPGE4afeCfpRpf/eUyBK55/Uyf2/BKGa5ZoiEi/PzWeMqBxSpSxxicRTG1djTePqGT5SATtqSQ3q3kwqY9KpN5kRX/a2v2ztz2Uv4uN0+Z5ehtqPY5oSuhsRLjW5J+SCE1d09hiDadfwMvQv+FOpV4C30Hq1rzXqjA0KWPmYBV9MGRJ6R/jOb2yvFakYCL4TkQq+OPitufqP1EcoepfKJOXnOkfeoWwIbuPTgJwwdjHnppBA+BOl8XjNuhqJRV3Eae2MUO85tAKp/MN1XHtuA4Qh6+FWKejchoMXW4aAaTMwNuG19S/tiJJ5DMziWPnnJF6/TMWSV5jelpbOrnz409uaR36ApFy5ZhXRSYNt97VcPpchDhknAM1svCEPJhpGAZZOCd9L1lAKFDEGD8gf1WjGpDeBpou44wS086bnOi2Te3OxOvOy/srYXMTBC4Cek2QvjpnoRldaMzlGLCRnsLM9kRS4bHk6SWFjkbqnOz+RYww3tLtyhaqPXuzwdgwaYS8GLGB/1/fktMd5PxfIQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3beadae5-f31d-4520-b420-08da91cad6e6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8703.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2022 18:49:20.3242 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QAwb+NxsuAwBbFpM4iIZRgqhTDUXhThMzM4niRdMw+Qmiu3i4QtGhj9HABNH3UvXJeQ/vrUY3604cF65XwuWZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8852 Subject: [libcamera-devel] [PATCH 08/14] libcamera: yaml_parser: Increase sentinel to 100k X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Xavier Roumegue via libcamera-devel From: Xavier Roumegue Reply-To: Xavier Roumegue Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Signed-off-by: Xavier Roumegue --- src/libcamera/yaml_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp index d8a7c2f9..abca6903 100644 --- a/src/libcamera/yaml_parser.cpp +++ b/src/libcamera/yaml_parser.cpp @@ -676,7 +676,7 @@ int YamlParserContext::parseDictionaryOrList(YamlObject::Type type, * Add a safety counter to make sure we don't loop indefinitely in case * the YAML file is malformed. */ - for (unsigned int sentinel = 1000; sentinel; sentinel--) { + for (unsigned int sentinel = 100000; sentinel; sentinel--) { auto evt = nextEvent(); if (!evt) return -EINVAL; @@ -690,7 +690,7 @@ int YamlParserContext::parseDictionaryOrList(YamlObject::Type type, } LOG(YamlParser, Error) << "The YAML file contains a List or Dictionary" - " whose size exceeds the parser's limit (1000)"; + " whose size exceeds the parser's limit (100000)"; return -EINVAL; }