From nobody Tue Feb 10 01:30:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+42059+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42059+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1560144051; cv=none; d=zoho.com; s=zohoarc; b=O1NwwN2e1Z2F8jk5ZkQwgNBjy17OF6aCzkZAZkW5rzD3JvlCDGqX8rpan1f4m+2b+hAE5p9t304ukLmHXgSdWJEEfQmQkVvse0IQ5bUS+L8aDRhFg94IFlH57byEKYwXIMITnAnbw20RGWSuADg3XY2qwbd4uQazd81EwLHZ/uY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560144051; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=nKlVswdqkRbWajPWzWMlw8PPGmcKgKoKWH2/yE+yd70=; b=Nt+IEBuU9btQkIJltPIiSEebW7tqRe77gMQA2XMq2JNr8G5gpqwwXa2m6P7QP09gVzkdowwkwJ1ErSGlGdzaSqc8NQz11HtJCePVeQDOVUAh4vUWR7cJo+83JGFTeoBh3N+OiXEhwbbZqRPGUwiH3MYXl+Y1OutZ8JnWZTCQRK4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42059+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1560144051327363.92925434637186; Sun, 9 Jun 2019 22:20:51 -0700 (PDT) Return-Path: X-Received: from mga01.intel.com (mga01.intel.com []) by groups.io with SMTP; Sun, 09 Jun 2019 22:20:50 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jun 2019 22:20:50 -0700 X-ExtLoop1: 1 X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga006.fm.intel.com with ESMTP; 09 Jun 2019 22:20:48 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew , Leif Lindholm , Zhichao gao Subject: [edk2-devel] [PATCH v5 5/5] MdeMoudlePkg/CapsulePei: No need to remain space for null-terminate Date: Mon, 10 Jun 2019 13:20:36 +0800 Message-Id: <20190610052036.11924-6-zhichao.gao@intel.com> In-Reply-To: <20190610052036.11924-1-zhichao.gao@intel.com> References: <20190610052036.11924-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1560144050; bh=Q7cEJXy5WrlOFmKNVEK5MFntn+sPqitQqKyA01YGU38=; h=Cc:Date:From:Reply-To:Subject:To; b=bntHPWUVdl99XcCNo1qqr5JdBwYXfWW6o3MztCFJt2j8PfSjoeGIAzcITYC+TPjvNJr 9shM3JkKvbVpaabhSYqMu+9UDXBi6FaFs+u48n77tAeCxchx0RG0rZYZ8PX++uhD0KNLl vaZk93w5mfLZMdC1s3y59CFAlYvJm4rtWLc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1853 UnicodeValueToStringS would remain two bytes for the first parameter to set the null- terminate. So remove this change in Mu. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Cc: Leif Lindholm Signed-off-by: Zhichao gao Reviewed-by: Leif Lindholm --- MdeModulePkg/Universal/CapsulePei/UefiCapsule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c b/MdeModulePkg= /Universal/CapsulePei/UefiCapsule.c index 3ac95b7be6..fabf30926c 100644 --- a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c +++ b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c @@ -922,7 +922,7 @@ GetScatterGatherHeadEntries ( if (Index !=3D 0) { UnicodeValueToStringS ( TempVarName, - (sizeof (CapsuleVarName) - ((StrLen (CapsuleVarName) + 1) * sizeof= (CHAR16))), + (sizeof(CapsuleVarName) - ((UINTN)TempVarName - (UINTN)CapsuleVarN= ame)), 0, Index, 0 --=20 2.21.0.windows.1 -=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 (#42059): https://edk2.groups.io/g/devel/message/42059 Mute This Topic: https://groups.io/mt/32001196/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-