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 CF10E74003E for ; Fri, 29 Dec 2023 13:10:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=SA1FSZB23f5+XTEsTSZHMh5GBJq+9VI4xVnmvS2aqcY=; 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=1703855438; v=1; b=L7TZ+DGJZ2SLw5H7D3Md8nlJEp4EgcJRyTLCf4L5dr2JMOx7x0qD9NS/bGabH50O9EVfOH+9 6evSKRFLwH01K7WfHeMcC9bRTHNuNUKUOJ/EhEJRvBwG17NGCbjjiqDRKV92oHBnR9YOpXaeRRg iOsvEB5DRlJkYl7Dr/ADCjH0= X-Received: by 127.0.0.2 with SMTP id D0peYY7687511xwiUKzT19RX; Fri, 29 Dec 2023 05:10:38 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.147214.1703855432356745653 for ; Fri, 29 Dec 2023 05:10:37 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10937"; a="427815450" X-IronPort-AV: E=Sophos;i="6.04,315,1695711600"; d="scan'208";a="427815450" X-Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2023 05:10:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,315,1695711600"; d="scan'208";a="13282999" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Dec 2023 05:10:05 -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; Fri, 29 Dec 2023 05:10:04 -0800 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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; Fri, 29 Dec 2023 05:10:04 -0800 X-Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 29 Dec 2023 05:10:04 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 29 Dec 2023 05:10:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PMUQafC6P0+w/WoERPRO8nayanqpfkOaFl+0JwBPmb2mCZuglEX7EXLTy/IAUSfQDMzIyKoivlLXB1GQpPfK3Ulw2HpHvzZkXi81FIOkBrL5HKxjdLirxdVQz1QA+alHJg5DU0SUvJzsxcrOGs0AxUg6jMhOWkgDLw7AoMFviTZ1wi9kP/iu7cOWm0i+DlFQpUaw7n6N2J7KOI3cd/8AGsDGN3Pm5Z/X6lJgCSSgRpFeKtaVljqmrOlXBlxNIwO9bUOOk16g0YFSR/veRwEmW2xeJWFBsnmv8EOX0YldXQ2Kshhdfpjcl5MmbErl7Hic7AbpQjslqvgGesBQSpGFAg== 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=hDUf89cCSilT4N8J8gd8yWHI4I82nRwC2UwgpyZqX2g=; b=eVZ6Emnd1/p+Wn317gnVKTOpUMfMHeM6TaH77OZMzWbnVLa7YLjdamebe0Uu6trI2JUtNmM+pMTSXkGJh8JWJpc+qmx/+K1bj+VL4Zxkb21Z5vftV9pE+wRew7pZxNC2O1q7yfxxpa2DvsDTzow47zEz1Sy/kesLGBjyIZ94F6DMSf0riv/Hu66NZrQ22MugVaQuO3HO/N38w+kp3BSaNvqBXSK3Dd7KXcGymGrhcTGck7oMbBcGs1FAUK7wvVqi42Xi8htsr5nIx5K2bRrJzBOJ96ePsGor1m8xISJQp7niDXvSWmjrJuJlcuMY8fUxe5gzIDMs9ResAksFrNrQtw== 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 SJ1PR11MB6227.namprd11.prod.outlook.com (2603:10b6:a03:45a::10) by IA1PR11MB6489.namprd11.prod.outlook.com (2603:10b6:208:3a7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.27; Fri, 29 Dec 2023 13:09:59 +0000 X-Received: from SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::bee8:181:ff56:8bd]) by SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::bee8:181:ff56:8bd%6]) with mapi id 15.20.7135.017; Fri, 29 Dec 2023 13:09:59 +0000 From: "Li, Yi" To: "devel@edk2.groups.io" , "Li, Yi1" CC: "Kinney, Michael D" , "Gao, Liming" , "Liu, Zhiguang" , "Xu, Wei6" Subject: Re: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Thread-Topic: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Thread-Index: AQHaMuedi8sr5KTnHE6bfwd0KnGu67DASoYA Date: Fri, 29 Dec 2023 13:09:59 +0000 Message-ID: References: <17A26769C8DD363C.24485@groups.io> In-Reply-To: <17A26769C8DD363C.24485@groups.io> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6227:EE_|IA1PR11MB6489:EE_ x-ms-office365-filtering-correlation-id: 6b888214-7cce-4cfe-b77f-08dc086f75ea 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: EXqlGqy7xeMQPUkCCLbUv0tXJVloWgdLbvKj7qGroofa2ElOEmmFnggeQkoI6W9b5xUOGto/+atBKgLIQgbJY3210ZIgTxfWl5j9rg/PUV57W6rAH9UCLq2mZUu2j3pPFl1pWqEzBG3apF3lkG22x5agN6r8DV6MBN4Jqi5d+/e/0b/FNcff+OKw4RP8q4eA3TphcDOjVX09EkHdXUjMvkBpFmnh7CU0LzeNkp1RF5QyFgkN8y5mEvUOu4K9bKDn4XZG4/E0WqkyPL8ZY3YMkd4eGP3eFYq3d0qyHwUw250CLNaCMOJEllxXDfCXKmAP3wXl7F/uLUACC4MvxnASNiHVfAUQ9iDCJP+nmUlpiBZYk+T/4kc6tQlBQ30QKEARrGyW+mw9EepSvwkhmZvBnIv0ezWR3CTPy8f0U1IcRTODhBPSBbpnkZRRzeD5DsKOjg4TC9DIP5kNJLQZ7nJDtzQZvQqnN3LQffIY/Uc8dzHojWiZqTx77kc306Kn72gtGvXGs3vQFyxW/ixHiFpdBT9gvgxy+LboBZbt9RjzvhN+sUziEmruqcMiv2EYBK1fEG9DrLvZ+1biiEC+BREKzkwLV2ML7g/6uKR2UfdcQ64= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?n0gVpfEvOWYmzk5FcocTT7d57pBAOVYRe2Zj5pPo10sHTmhIkNoLZecV5DV6?= =?us-ascii?Q?Pe6+3WAGaQxS5mRbzhvCOGe9Z+9PTxzYOXflL1GsLoXJZwyydOf4nEvpI9s7?= =?us-ascii?Q?e3NvtoHbxSS2Q73J3pyIfEoSb0asknElfzLeF5/5aVS9U20gd1T/BNHY2eQf?= =?us-ascii?Q?0EXkyyEs1femP6oRSZdvvuur0uHFdXy6LGZJ0zEaif93vJzjk+OZlhsRF2nu?= =?us-ascii?Q?9e66KHOQCiMxCrPlEvlW+sqFk4MFFWAec8Ohp76NHfy2sPfUDQjoWQkepS07?= =?us-ascii?Q?dkz18zB5e+yFA5w/5gCTp7Qdl4ZdKV8Zzs/eo7KC2LTkxrUddeIW6Ok0AbLR?= =?us-ascii?Q?YKqXtQR046mfsbdOvyEAmv7E9brDcxseWfZP1qitgz2lsJ1y9EFlMlOIRO1z?= =?us-ascii?Q?J19CsY9oo6fTSSldldJWO7rCX4UFleAsrc409pB4ZzYCwenDs83ML53ZEQ08?= =?us-ascii?Q?9TaeESmCYoI+qZfYJHTSOk9nQcQ3ZcLl7n8HaykBQ4aMvOX28he/KWCiJcHR?= =?us-ascii?Q?g344H8YcTIaQzi+S++AvLoJ2Neyf0C2R95Jk9gjXk9mH3kCKAXunH1R+cM7D?= =?us-ascii?Q?/SWjAwNfEGwHasfrtabgFLIclBOp/p1oeZLWLarR7w3HWBBUcAgOCvLLtkAz?= =?us-ascii?Q?r1hOQsex5gJHkdfwoM+TMaRP5OjFU4T19K3sa/qrHe8zz1tCOFc7MpGGiZaR?= =?us-ascii?Q?//CbXtX+/eVi8Skxs9WeCmWaqRgqWi9g5Tnn2PkHyX0RaHKuG/n583muCIOe?= =?us-ascii?Q?DqkRQu2I7Q8OXQkITgnF7YOS4B3ZxFYb2TczxVH3PGe8nLo8nkaHqZ4cYanq?= =?us-ascii?Q?ImpV6eJj+ZJAxMJg9ec8oPATv0FdW7kDyDAtvr4VYCC7ivMa9cwl9t4aQg2H?= =?us-ascii?Q?wMU9KS2eW87BLkIeBu7wDdl/tloJ7Rq78MArUVRNCOCuYoRnXYyHbM0beuN7?= =?us-ascii?Q?sQrq+FCvPxY9y9OEhouZMGt+0ezrTwAxY5WrX7wsNB12C7fZF9bQQXxOF97S?= =?us-ascii?Q?FTJSzmLbtmJXfPyOj+rX8v3Rnlr4ZTSVy0Eeu5yjD/mGxLIkdcvyYpqUTPLz?= =?us-ascii?Q?Lhd0pY/YRVu6FvAyuKflg6QEYbmrLRqu+tLIPYJL4LEraHKw8zJ1MIggf/Kq?= =?us-ascii?Q?MIlom7eyMjCf2IK1yn0WgGSn4cM+hOb+RXMfaiQ5/aTqqvtK40tEGPjArcwp?= =?us-ascii?Q?if1GUHQcK4/fLSUkLgNjCRXQkQ9n+GhmqBqdWDbA82CbVesm9InvDHqedHY3?= =?us-ascii?Q?2cTTmiA30pGXJD6ga++jyunoBNxmX/KDtW196mlrIwIB/oPio3fPJJ6WrV4X?= =?us-ascii?Q?6A49qMc+8/gSzqhIrijOmjoI7cUkW2NlWKPOc75x6gna4jnmPod8tNJ4Arj6?= =?us-ascii?Q?40zk2YXD0cdovMRrngsm8/WynzwwsCkxYFjMfPuyQ39njXmYni5UClXhBL83?= =?us-ascii?Q?7zNGdxZ80y7Gm+vFYaiIRocCvCHHQe6dm5s3T49a++PyJK0s/gV0LkwjDrFU?= =?us-ascii?Q?1MvnAw79NKycLWfGMv34cUoUTiThcbDwGl1HQvhh0UGhFVBgKFyDcpXfZvMZ?= =?us-ascii?Q?YvVpMwmHZBTqTAmxmIU=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6227.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b888214-7cce-4cfe-b77f-08dc086f75ea X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Dec 2023 13:09:59.2237 (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: HDtydMl5GTKUWQnSDttbgr1TXrUTS9LUoU8DF9jr5rdd7JT+XVml88gaG5rJbsrbsVNYIpVqGLf0X0z6AhulmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6489 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,yi1.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ZHVIa1TkfzRQfMOuHjWasY25x7686176AA= 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=L7TZ+DGJ; 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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Hello, any comments about this patch series? -----Original Message----- From: devel@edk2.groups.io On Behalf Of Li, Yi 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: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependenc= y 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 (#112998): https://edk2.groups.io/g/devel/message/112998 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-