From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8A4A822618147 for ; Tue, 10 Apr 2018 23:39:51 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2018 23:39:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,435,1517904000"; d="scan'208";a="49836174" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 10 Apr 2018 23:39:50 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Apr 2018 23:39:50 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Apr 2018 23:39:49 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.184]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.149]) with mapi id 14.03.0319.002; Wed, 11 Apr 2018 14:39:47 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Gao, Liming" Thread-Topic: [PATCH] MdePkg DxeHstiLib: Fix ErrorString pointer incorrectly calculated Thread-Index: AQHT0V16TLCXKh8XkkWDwhDrz1y9eaP7HPSQ Date: Wed, 11 Apr 2018 06:39:47 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AB52D7B@shsmsx102.ccr.corp.intel.com> References: <20180411062211.14104-1-star.zeng@intel.com> In-Reply-To: <20180411062211.14104-1-star.zeng@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjFjOWZjMjgtY2ZkNC00NWIxLWE4M2MtOTkxMWNlYTdiMTM0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiIxNHl3ZlVxQVFLVzY2R3pPa0dXUUlJMllIXC9Kc1l1c0NPeEI3N3FpYUNzUERcL2pxWGNkM3dvMmQ5ZFJxTkxFQXkifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdePkg DxeHstiLib: Fix ErrorString pointer incorrectly calculated X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 06:39:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: jiewen.yao@intel.com > -----Original Message----- > From: Zeng, Star > Sent: Wednesday, April 11, 2018 2:22 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; > Kinney, Michael D ; Gao, Liming > > Subject: [PATCH] MdePkg DxeHstiLib: Fix ErrorString pointer incorrectly > calculated >=20 > Fix ErrorString pointer is incorrectly calculated in > InternalHstiIsValidTable(). >=20 > Cc: Jiewen Yao > Cc: Michael D Kinney > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Star Zeng > --- > MdePkg/Library/DxeHstiLib/HstiDxe.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/MdePkg/Library/DxeHstiLib/HstiDxe.c > b/MdePkg/Library/DxeHstiLib/HstiDxe.c > index 58510766bb43..d08d8def0cb5 100644 > --- a/MdePkg/Library/DxeHstiLib/HstiDxe.c > +++ b/MdePkg/Library/DxeHstiLib/HstiDxe.c > @@ -1,6 +1,6 @@ > /** @file >=20 > - Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
> + Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the = BSD > License > which accompanies this distribution. The full text of the license may= be > found at > @@ -211,7 +211,7 @@ InternalHstiIsValidTable ( > } >=20 > ErrorStringSize =3D HstiSize - sizeof(ADAPTER_INFO_PLATFORM_SECURITY) = - > Hsti->SecurityFeaturesSize * 3; > - ErrorString =3D (CHAR16 *)((UINTN)Hsti + > sizeof(ADAPTER_INFO_PLATFORM_SECURITY) - Hsti->SecurityFeaturesSize * 3); > + ErrorString =3D (CHAR16 *)((UINTN)Hsti + > sizeof(ADAPTER_INFO_PLATFORM_SECURITY) + Hsti->SecurityFeaturesSize * 3); >=20 > // > // basic check for ErrorString > -- > 2.13.3.windows.1