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 9D58D81F56 for ; Sun, 26 Feb 2017 17:09:45 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 26 Feb 2017 17:09:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,211,1484035200"; d="scan'208";a="69320482" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 26 Feb 2017 17:09:45 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 26 Feb 2017 17:09:44 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Mon, 27 Feb 2017 09:09:41 +0800 From: "Yao, Jiewen" To: "Wu, Hao A" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 4/7] SignedCapsulePkg: Replace [Ascii|Unicode]ValueToString Thread-Index: AQHSjDa6iVIqFq3zJU+pfbYmYlKp0KF8ExWQ Date: Mon, 27 Feb 2017 01:09:40 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8F58BC@shsmsx102.ccr.corp.intel.com> References: <1487676934-12984-1-git-send-email-hao.a.wu@intel.com> <1487676934-12984-5-git-send-email-hao.a.wu@intel.com> In-Reply-To: <1487676934-12984-5-git-send-email-hao.a.wu@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 4/7] SignedCapsulePkg: Replace [Ascii|Unicode]ValueToString 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, 27 Feb 2017 01:09:45 -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: Wu, Hao A > Sent: Tuesday, February 21, 2017 7:36 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Yao, Jiewen > Subject: [PATCH 4/7] SignedCapsulePkg: Replace [Ascii|Unicode]ValueToStri= ng >=20 > It is the follow up of commits 51f0ceb..9e32e97 to replace > AsciiValueToString/UnicodeValueToString with > AsciiValueToStringS/UnicodeValueToStringS. >=20 > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Hao Wu > --- > SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile.c | > 10 ++++++++-- > SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.c | > 10 ++++++++-- > 2 files changed, 16 insertions(+), 4 deletions(-) >=20 > diff --git > a/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile.c > b/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile.c > index fef1daf..204fd53 100644 > --- a/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile= .c > +++ > b/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile.c > @@ -2,7 +2,7 @@ > Parse the INI configuration file and pass the information to the recov= ery > driver > so that the driver can perform recovery accordingly. >=20 > - Copyright (c) 2016, Intel Corporation. All rights reserved.
> + Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
>=20 > This program and the accompanying materials > are licensed and made available under the terms and conditions > @@ -85,7 +85,13 @@ ParseRecoveryDataFile ( > // Get the section name of each update > // > AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Recovery"); > - AsciiValueToString(Entry + AsciiStrLen(Entry), 0, Index, 0); > + AsciiValueToStringS ( > + Entry + AsciiStrnLenS (Entry, MAX_LINE_LENGTH), > + MAX_LINE_LENGTH - AsciiStrnLenS (Entry, MAX_LINE_LENGTH), > + 0, > + Index, > + 0 > + ); > Status =3D GetStringFromDataFile( > Context, > "Head", > diff --git > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.c > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.c > index dcad762..67584c6 100644 > --- a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.= c > +++ > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.c > @@ -2,7 +2,7 @@ > Parse the INI configuration file and pass the information to the updat= e driver > so that the driver can perform update accordingly. >=20 > - Copyright (c) 2016, Intel Corporation. All rights reserved.
> + Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
>=20 > This program and the accompanying materials > are licensed and made available under the terms and conditions > @@ -86,7 +86,13 @@ ParseUpdateDataFile ( > // Get the section name of each update > // > AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update"); > - AsciiValueToString(Entry + AsciiStrLen(Entry), 0, Index, 0); > + AsciiValueToStringS ( > + Entry + AsciiStrnLenS (Entry, MAX_LINE_LENGTH), > + MAX_LINE_LENGTH - AsciiStrnLenS (Entry, MAX_LINE_LENGTH), > + 0, > + Index, > + 0 > + ); > Status =3D GetStringFromDataFile( > Context, > "Head", > -- > 1.9.5.msysgit.0