From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 D341D817B1 for ; Sun, 8 Jan 2017 18:26:37 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 08 Jan 2017 18:26:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,339,1477983600"; d="scan'208";a="920313547" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 08 Jan 2017 18:26:36 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 8 Jan 2017 18:26:36 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 8 Jan 2017 18:26:36 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Mon, 9 Jan 2017 10:26:35 +0800 From: "Zhang, Chao B" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Bi, Dandan" , "Yao, Jiewen" Thread-Topic: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize Thread-Index: AQHSahz2SzOeuLQiM0KQPb18krdnCKEvazww Date: Mon, 9 Jan 2017 02:26:34 +0000 Message-ID: References: <1483927559-137948-1-git-send-email-star.zeng@intel.com> In-Reply-To: <1483927559-137948-1-git-send-email-star.zeng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 02:26:37 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Chao Zhang -----Original Message----- From: Zeng, Star=20 Sent: Monday, January 9, 2017 10:06 AM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Bi, Dandan ; Yao= , Jiewen ; Zhang, Chao B Subject: [PATCH] SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of= AsciiStrSize Cc: Dandan Bi Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c | 4 ++-- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c b/SecurityPkg/Tc= g/Tcg2Config/Tcg2ConfigDriver.c index ad7cd54e6cb0..34828eed7d64 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c @@ -90,7 +90,7 @@ InitializeTcg2VersionInfo ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr=20 + (PcdTcgPhysicalPresenceInterfaceVer)) ); =20 // @@ -188,7 +188,7 @@ InitializeTcg2VersionInfo ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr=20 + (PcdTcgPhysicalPresenceInterfaceVer)) ); if (PcdTcg2PpiVersion !=3D Tcg2Version.PpiVersion) { DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is no= t DynamicHii type and maps to TCG2_VERSION.PpiVersion\n")); diff --git a/Se= curityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2= ConfigImpl.c index ecd7ab981a3d..4432daea81b6 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c @@ -495,7 +495,7 @@ Tcg2VersionInfoCallback ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr=20 + (PcdTcgPhysicalPresenceInterfaceVer)) ); if (PcdTcg2PpiVersion !=3D Value->u64) { CreatePopUp ( -- 2.7.0.windows.1