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 6C22CD806D1 for ; Wed, 3 Jan 2024 00:52:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=y3Jt5AcTn+0YZkZ/xNaLx6InLrn/sIztalhYZJdhfss=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1704243154; v=1; b=omcIxB9t3jA5ViTSmvC3qwa2DRPEJdF0p2ogf01p/SoH6HZ85TGRAc04V9QnbcFgtMS7jQtG qooyaO28kxFIhHxFosILNix0kGILZTnmHMEnN6PJVCv69suLesEegCmr7FgJ7/68hIw9x/bsPFg 5qJ36uxDqt4GvRQrS/UloVwQ= X-Received: by 127.0.0.2 with SMTP id VWo8YY7687511x7CAw7jx0mh; Tue, 02 Jan 2024 16:52:34 -0800 X-Received: from zrleap.intel-email.com (zrleap.intel-email.com [114.80.218.36]) by mx.groups.io with SMTP id smtpd.web11.3208.1704243152933304174 for ; Tue, 02 Jan 2024 16:52:33 -0800 X-Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 7A758A32E0CF for ; Wed, 3 Jan 2024 08:52:30 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 63280A32E0E1 for ; Wed, 3 Jan 2024 08:52:30 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by zrleap.intel-email.com (Postfix) with SMTP id BDB5BA32E0D7 for ; Wed, 3 Jan 2024 08:52:27 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Wed, 03 Jan 2024 08:52:24 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Xu, Wei6'" , "'Li, Yi1'" , Cc: "'Kinney, Michael D'" , "'Liu, Zhiguang'" References: <20231220015455.1636-1-yi1.li@intel.com> In-Reply-To: Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BBVENIIFYyIDAvMl0gQWRkIERFQ0xBUkVfTEVOR1RIIG9wY29kZSBvZiBkZXBlbmRlbmN5IGV4cHJlc3Npb24=?= Date: Wed, 3 Jan 2024 08:52:27 +0800 Message-ID: <02da01da3ddf$1f8d3480$5ea79d80$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQFfIq2dcPEJa6HxpLzWL8ZBa9KuBwFCToKRsbNmKmA= 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,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3Mlta2nDOHxfpp38xpclx4ydx7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=omcIxB9t; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none Reviewed-by: Liming Gao for this patch set.=20 > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Xu, Wei6 > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA1=D4=C22=C8=D5 9:43 > =CA=D5=BC=FE=C8=CB: Li, Yi1 ; devel@edk2.groups.io > =B3=AD=CB=CD: Kinney, Michael D ; Gao, Liming > ; Liu, Zhiguang > =D6=F7=CC=E2: RE: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency > expression >=20 > Reviewed-by: Wei6 Xu >=20 > -----Original Message----- > From: Li, Yi1 > 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 >=20 > 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 wit= h a > length declaration. It provides simple bounds checking to avoid having to > parse the op-codes, but in the case of a malformed depex being parsed, avoid > other issues which can be messy. >=20 > 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. >=20 > REF: UEFI spec 2.10 Table 23.4 >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Wei6 Xu >=20 > Yi Li (2): > MdePkg: Add DECLARE_LENGTH opcode of dependency expression > FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression >=20 > .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ > .../PrivateInclude/FmpLastAttemptStatus.h | 3 + > .../EvaluateDependencyUnitTest.c | 84 > ++++++++++++++++--- > MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- > 4 files changed, 125 insertions(+), 26 deletions(-) >=20 > -- > 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 (#113045): https://edk2.groups.io/g/devel/message/113045 Mute This Topic: https://groups.io/mt/103494041/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-