From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from atlmailgw1.ami.com (atlmailgw1.ami.com [63.147.10.40]) (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 F16DE21D1B2AD for ; Wed, 19 Jul 2017 14:09:10 -0700 (PDT) X-AuditID: ac1060b2-081ff70000000ee1-5b-596fcae961cf Received: from atlms2.us.megatrends.com (atlms2.us.megatrends.com [172.16.96.152]) (using TLS with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id 00.10.03809.9EACF695; Wed, 19 Jul 2017 17:11:05 -0400 (EDT) Received: from ATLMS1.us.megatrends.com ([fe80::8c55:daf0:ef05:5605]) by atlms2.us.megatrends.com ([fe80::29dc:a91e:ea0c:cdeb%12]) with mapi id 14.03.0123.003; Wed, 19 Jul 2017 17:11:04 -0400 From: Felix Poludov To: "edk2-devel@lists.01.org" CC: "Kinney, Michael D (michael.d.kinney@intel.com)" Thread-Topic: [staging/edk2-test] [PATCH] TestProfile bug fix Thread-Index: AdMA0uASQ6msozSMTVGEiyb91jOTWg== Date: Wed, 19 Jul 2017 21:11:03 +0000 Message-ID: <9333E191E0D52B4999CE63A99BA663A00302B35D1D@atlms1.us.megatrends.com> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [172.16.99.93] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAKsWRmVeSWpSXmKPExsWyRiBhhu7LU/mRBo/viFnsOXSU2aKj4x+T A5PH4j0vmTy6Z/9jCWCKamC0SczLyy9JLElVSEktTrZVCijKLEtMrlRSyEyxVTJUUijISUxO zU3NK7FVSiwoSM1LUbLjUsAANkBlmXkKqXnJ+SmZeem2Sp7B/roWFqaWuoZKdiEZqQqZeWn5 RbmJJZn5eQrJ+XklQNWpKUBRhYQuzoy5X9czF+zRrPgzfTJTA+MO1S5GTg4JAROJVTufsXcx cnEICWxnkni7bREbhHOYUaJ3619WkCo2ARWJTWcvMIPYIgLmEq3zrzCB2MwCwRLLGz6wgdjC AhYSM3e2MELU2Er8njYbql5P4ta3ZrA5LAKqEoe2nAezeQUCJfonXgbrZRQQk/h+ag3UTHGJ W0/mM0FcJyLx8OJpNghbVOLl43+sELaCxJb3newQ9ZkSR07sYYeYKShxcuYTlgmMQrOQjJqF pGwWkrJZjBxA8XyJ7f8rIUp0JBbs/sQGYWtLLFv4mhnGPnPgMROmuIPE9jcf2SFsNYlXE/dC 2WsZJTZMtYWwFSWmdD9kX8DIs4pRKLEkJzcxMye93FAvMTdTLzk/dxMjJBFt2sHYctH8EKMA B6MSD6/H3vxIIdbEsuLK3EOMKkBDHm1YfYFRiiUvPy9VSYRXaj9QmjclsbIqtSg/vqg0J7X4 EKMTMHQnMktxg6IdmI7ijQ0MpERhHEMTMxNzI3NDSxNzY2MlcV6fhvBIIYF0YHrMTk0tSC2C GcLEwSnVwNj7s2TPUcslZ5LeT8q9oFzrviiEw+vc1ImJEWe+NC6/8fVfzfUHeXscTtdEn3lU XseWlBv357e9/RGBf8dWP38vuv3Hw/Mv57H7FCz+Pq85+OLbOt3NDyR+XrPeJuRlz/3xoHfw YelP9k89jb4ZZGWa8NZsuCY1SaVR8Vbgz7x7zbE6z58rXHiqxFKckWioxVxUnAgA5DKZAnMD AAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: [staging/edk2-test] [PATCH] TestProfile bug fix 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, 19 Jul 2017 21:09:11 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The attached patch is a bug fix for TestFrameworkPkg/Support/TestProfile dri= ver. AsciiStrCpy function was used to copy overlapping strings, which triggered a= n ASSERT. The function was used on overlapping strings in a couple of places: 1. _alltrim: AsciiStrCpy is replaced with CopyMem, which can handle overlapp= ing buffers 2. _prosessLine: AsciiStrCpy at the beginning of the function is removed. The call was redundant. The function was trying to move the data that have a= lready been moved by _alltrim. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Felix Polyudov felixp@ami.com Please consider the environment before printing this email. The information contained in this message may be confidential and proprietar= y to American Megatrends, Inc. This communication is intended to be read on= ly by the individual or entity to whom it is addressed or by their designee.= If the reader of this message is not the intended recipient, you are on not= ice that any distribution of this message, in any form, is strictly prohibit= ed. Please promptly notify the sender by reply e-mail or by telephone at 77= 0-246-8600, and then delete or destroy all copies of the transmission.