From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 CDB9C2095A372 for ; Wed, 31 May 2017 00:04:09 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 31 May 2017 00:05:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,422,1491289200"; d="scan'208";a="863035588" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 31 May 2017 00:05:09 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 May 2017 00:05:09 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 May 2017 00:05:09 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.146]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.116]) with mapi id 14.03.0319.002; Wed, 31 May 2017 15:05:07 +0800 From: "Gao, Liming" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Kinney, Michael D" Thread-Topic: [PATCH v2 0/2] Avoid reading undefined contents in PrintLib Thread-Index: AQHS2dUMKM8eQhLZKkOtEFLtmNbCj6IOBMjQ Date: Wed, 31 May 2017 07:05:06 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D742C13@shsmsx102.ccr.corp.intel.com> References: <20170531061319.21976-1-hao.a.wu@intel.com> In-Reply-To: <20170531061319.21976-1-hao.a.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v2 0/2] Avoid reading undefined contents in PrintLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2017 07:04:10 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: Wu, Hao A > Sent: Wednesday, May 31, 2017 2:13 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Yao, Jiewen ; G= ao, Liming ; Kinney, Michael D > > Subject: [PATCH v2 0/2] Avoid reading undefined contents in PrintLib >=20 > V2 changes: > Refines the code logic to replace the 'if else' statments with the '? :' > operator. >=20 > V1 history: > This series add logic to avoid reading content beyond a ASCII format > string. >=20 > Cc: Jiewen Yao > Cc: Liming Gao > Cc: Michael Kinney >=20 > Hao Wu (2): > MdePkg/BasePrintLib: Avoid reading content beyond the format string > MdeModulePkg/PrintLib: Avoid reading content beyond the format string >=20 > MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 22 +++++++++= +---------- > MdePkg/Library/BasePrintLib/PrintLibInternal.c | 16 +++++++--= ----- > 2 files changed, 19 insertions(+), 19 deletions(-) >=20 > -- > 2.12.0.windows.1