From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DD596AC0038 for ; Tue, 2 Jan 2024 01:43:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=TalIt7bxZ5UbHHnqNnJwhGr2RHvsRKJIYLmkBjGU3ME=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704159811; v=1; b=XGmEfPsh2d7mvg1hPslgaqymiPedqAiOHXulYbigQSXjXPEg7Ou47gGaaKAshm82ozCEgzNC qezrq04PJfCT5hCCm9VWiapAWLufcG94+6uOI7aGCsA535ZXoOwlIxKgHq5D130JelabM12FIeP 6t5MaK3jgAlTrkinwwtxRM5o= X-Received: by 127.0.0.2 with SMTP id 8Hb7YY7687511xvWkfpRJr0C; Mon, 01 Jan 2024 17:43:31 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.20289.1704159810334121486 for ; Mon, 01 Jan 2024 17:43:30 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10940"; a="463228234" X-IronPort-AV: E=Sophos;i="6.04,323,1695711600"; d="scan'208";a="463228234" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jan 2024 17:43:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10940"; a="783051790" X-IronPort-AV: E=Sophos;i="6.04,323,1695711600"; d="scan'208";a="783051790" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 01 Jan 2024 17:43:29 -0800 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 1 Jan 2024 17:43:28 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 1 Jan 2024 17:43:28 -0800 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 1 Jan 2024 17:43:28 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BBoZPR78RjEIwaJzje2iLgJGAkJOmOoP5uO6bTVTNFZWtsQNwpzfvZzHOCjKFzoRy23F9wCvZ/9w8H9maYZrTOctMYUgRXgdzt/Hn8uvpsHvpRcXUwyUoxjDyfz70YdT3LyynT5OpnrTf8fATVXwJ+wjK5neC8aWpWlnSahzl+aJ+5s2DLiRlXNWKwol5C3oQBHqhIOM5F+86ZJ93wWwb3QnjT+cQRgUiMx8Cw3AbK3aV14EHebPOjIjbBFWAlwtpDm6WCEETMDljA1in1hNEGCw9hBvIsEkq2oEOJwmehxMdpR2MkkcqTEod3vCe/lwcJMJZdoykXj8oyATnZn3cw== 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=glDvTOfP0jBaKMpFTUOiO7cCOoiWRpxBkdW/bDaAOis=; b=YAsrm2SZ3phW/x/Bw4ZjIJyWHl7WWyp5D2uqIc/vpYGZQgGjiEI+o+iRluaqdwswoiQFF1p7jtLMrK6I8sK7eFBYyfNvMNoaXLnIH9sGedBzKKkD66UifGkSq+hAZcS4pWxJrlR7GIdK+13BvsaO/QmGNPJNEeXVXEUTBxDkI3Xi/OvHHkh/K+4EyMAl2/Ed/VmmoGbGeW+YUzyg77Vvga6qjEac/a8gIIP1ZfV8yO9RziUKID4uO7YOnmS6ADmlaS/Zynf8shV23mw3akW8lCcQhfh0FgdRKT051cJW0wwazUpVq461e69iZXr1TNJnYSjCF64UfLg2GPb3Bq88+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from CH3PR11MB8342.namprd11.prod.outlook.com (2603:10b6:610:167::10) by SN7PR11MB6774.namprd11.prod.outlook.com (2603:10b6:806:265::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Tue, 2 Jan 2024 01:43:20 +0000 X-Received: from CH3PR11MB8342.namprd11.prod.outlook.com ([fe80::e6a6:907c:cdb2:269e]) by CH3PR11MB8342.namprd11.prod.outlook.com ([fe80::e6a6:907c:cdb2:269e%7]) with mapi id 15.20.7135.023; Tue, 2 Jan 2024 01:43:20 +0000 From: "Xu, Wei6" To: "Li, Yi1" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Gao, Liming" , "Liu, Zhiguang" Subject: Re: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Thread-Topic: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Thread-Index: AQHaMueUcY1uv9lGz0GIv/YLIjngbrDF05OQ Date: Tue, 2 Jan 2024 01:43:18 +0000 Message-ID: References: <20231220015455.1636-1-yi1.li@intel.com> In-Reply-To: <20231220015455.1636-1-yi1.li@intel.com> Accept-Language: en-US, en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR11MB8342:EE_|SN7PR11MB6774:EE_ x-ms-office365-filtering-correlation-id: 91688537-1d83-40b7-f73d-08dc0b343233 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: dojuDt7gCDAJj48eQMoSVgyJVoGFHW6oLnYHHaEC0+hwl8x89/fu5iEnvlKqm3/xk4Jfzshv863E04fTFBYpEeWhtVtnALbBv8ZO8TR4J235u2vs+4L7R5mnGZU/pILzhjVCBQKvd9LkXTP8GrLKXkpFpUn1wr/md7EA6Q6AJEptSFYDQ6rGFHEEF6UCLZiG5FYuxjzsuNDqhS1NB/M59YKYN53cBOtq4tERkgOClmAKkvOuIoqPKBHGFs/TZRfaUJvvndnsrxoPsHqGMz2yKjIGyfpqsPrTZ/Gd5nxidWFSqteMtizxrgkX0XfPqIbP/GAv54fOUET61yGXPHPYjsQ3T3iAH0wBTzx+eegYzT9RySSxT6RPhwFZdfwmYc0TGTwx71DHb+f47B/R9Pd8UQRnOuJAlOLXoNF1OjS9bePmwj7moE0iTPn7NYlUeui0BYXy+m3aEqYxJJUh8U/hbligZRdu81uYuXXORwkN3hKLMF0lnHEKLmdPhZkzAXh2EQu6NHwqIPgOFxpy79C4DHtOthcGggezXc+Uwk88qDjzNIt7SAx2m/KqLBuwCA8qf6KA1SCu+jdrczMWcZi9b9w4QvBDyPC5M1FNdlYieJEAL4E7M7Ge3NwANvn7/aB3 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PcHqn22tNUS0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?us-ascii?Q?UFTJ19J6ytfnWW1DrALYO9DQbd4niaw29mmO8cZiUKEOAhnit7f2a+Fpjjki?= =?us-ascii?Q?nUWf53ckBfFDv3eKhYfYt7QzOhzaeOEbR6i6klKxfGcpg6AI3kZaOBkLgRVm?= =?us-ascii?Q?o5OJgw1pOQ5+MkvtQtWMYbtMPFCz/e7Ct02v7QDnnPHPZTFDvsPh2X/i4xbu?= =?us-ascii?Q?m0eG2bp51mmvGvj/WnBb7lg2Pcw2mRBitg+6ZiKbms8pMMStQ1SX4ZDQ08js?= =?us-ascii?Q?xkAoyoL1iQxHtPoBXkCZnbwNuwLqk9BFpQt8JHi5S3mcf9MPq64M7KYdpE0/?= =?us-ascii?Q?xAgY4oLiqKtH7fCJjozbgB9SkJ5SUunhdhozQnEQ2lMTW2BpYwDRhGkNuEyi?= =?us-ascii?Q?va+AvPXZxsZTNU/72bWMTPrsAqGU9ik3CMwGLL9MV+TwALHRQSSqOE0ja6RM?= =?us-ascii?Q?qJ9Fohjf3Z6Abo/lJUXS1xVqnvzTrNVc2lfuq1E0nnhrriUyzRjOqpQjOuGV?= =?us-ascii?Q?d6J61SoCN/k6hOux3DygXRbz06MB4qfOI/wyg0eD1oYALOylJRnQBvdFhO3M?= =?us-ascii?Q?f84G8aSnY+VSAYpxYl8UHBu2xXZ7U+gNGe0U1oVnuCe+JhrJNS3K6VrVrXOl?= =?us-ascii?Q?3x2GuidT8mW7pYYnkd4JRG06pSWe8fuyNdFI+adZ7K8VzXGEMHT/724sQIGT?= =?us-ascii?Q?Xd9TymzbuuV4GbdAT7g=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR11MB8342.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91688537-1d83-40b7-f73d-08dc0b343233 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2024 01:43:18.8074 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: N+SnuKo+DXC7XmUkK9oN8AhTanXqH/AmlG9uB+0feXzBFdaI82eACPq+r/f6k5dp+meQq3Ch5H1lmFikFBiTPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6774 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wei6.xu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: GpucVGqQVbn66dbQmukuOPvXx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=XGmEfPsh; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Wei6 Xu -----Original Message----- From: Li, Yi1 =20 Sent: Wednesday, December 20, 2023 9:55 AM To: devel@edk2.groups.io Cc: Li, Yi1 ; Kinney, Michael D ; Gao, Liming ; Liu, Zhiguang ; Xu, Wei6 Subject: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression To avoid messy parsing of the Depex section of a Capsule, it would be a lot= easier for everyone involved if we preceded the Capsule Depex Section with= a length declaration. It provides simple bounds checking to avoid having t= o parse the op-codes, but in the case of a malformed depex being parsed, av= oid other issues which can be messy. Syntax DECLARE_LENGTH <32-bit Length> Description Declares an 32-bit byte length of the entire dependency expression. Behaviors and Restrictions This opcode must be the first one in a dependency expression. REF: UEFI spec 2.10 Table 23.4 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Wei6 Xu Yi Li (2): MdePkg: Add DECLARE_LENGTH opcode of dependency expression FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ .../PrivateInclude/FmpLastAttemptStatus.h | 3 + .../EvaluateDependencyUnitTest.c | 84 ++++++++++++++++--- MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- 4 files changed, 125 insertions(+), 26 deletions(-) -- 2.42.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113016): https://edk2.groups.io/g/devel/message/113016 Mute This Topic: https://groups.io/mt/103274336/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-