From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.0.57; helo=eur02-am5-obe.outbound.protection.outlook.com; envelope-from=supreeth.venkatesh@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00057.outbound.protection.outlook.com [40.107.0.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C22EC21164C6B for ; Mon, 15 Oct 2018 06:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kN27Y+b6kW5sjipl7ZVrseb/FD+XHy2hQakmucx/+4o=; b=gr1gKAQp0AeFItFfmZ1nej6JsjyNs1UPDY2LVnacPjiFp784pCLFri1VQXRjtuWVKvLO9q/gKQyA6SLgTxjuxBHyoGEq31U7Gge372v3oeAPsgWkvAvA1C4e8RvQaU45ltkmuQiUH/ZRD7m+CqZ4ntfB67tvIeKk25ev/LnANo8= Received: from AM4PR08MB2788.eurprd08.prod.outlook.com (10.171.191.18) by AM4PR08MB0770.eurprd08.prod.outlook.com (10.164.82.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Mon, 15 Oct 2018 13:10:09 +0000 Received: from AM4PR08MB2788.eurprd08.prod.outlook.com ([fe80::d4b:69c8:51b8:1739]) by AM4PR08MB2788.eurprd08.prod.outlook.com ([fe80::d4b:69c8:51b8:1739%4]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 13:10:09 +0000 From: Supreeth Venkatesh To: Eric Jin , "edk2-devel@lists.01.org" CC: Jiaxin Wu Thread-Topic: [PATCH] uefi-sct/SctPkg:The original design for the 'EraseLengthGranularity' test need consider this case Thread-Index: AQHUYwyVZ7lQnhs2nkWNGYV1bOjsE6UfNy2AgAC7vQA= Date: Mon, 15 Oct 2018 13:10:09 +0000 Message-ID: References: <20181013155111.560-1-eric.jin@intel.com> <997b7ed5-ccaa-984a-adf1-6be67d0961e8@arm.com> In-Reply-To: <997b7ed5-ccaa-984a-adf1-6be67d0961e8@arm.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 x-ms-exchange-imapappendstamp: AM4PR08MB2788.eurprd08.prod.outlook.com (15.20.1228.020) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Supreeth.Venkatesh@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR08MB0770; 6:+GShU9riJPFPKmrIRibzkxwLjpV4uS9TKIc4SjMQLc+N4MeAkj/rNxWflXd8dfRWvcQODxSgA5rTKcHMoYcvRceMwWq1LTzXlGsuBxgE299L97MCBRnHjQ2vB/bpHUKMRcTzArW9TxMi83FkhG0yDaCRkTmJOV0SfEG3kCEi/vZCpizfqR642J2orU4uc46OAzSSG0ME4HELo9hjLzR2wTHKpPrWnBtfKqREX4KJ2/qg+zSbBFfIZa8JOwiF4VjTCRwfqX4C+qxVCQ9Kg42eOXaEgD2U22DGRBrChucAI8D9sPyA/b5UwTZd2KB10fOy5GyJ62leEgnC/LnEX3Qz/1T96qcaIW7zQZJ9sh+D6kMfHQyK2ZXu6BunmPgRjJ3Soq0qVpErfLecpBKMRU+XsBVOYM5CxZQtI1bZi0p4835lbu84Jel5/mvyUnpiJT6tJ8gAyFbfZeX9NBIpAiofQQ==; 5:Br4CPdcNeJO/EFSUBkzySfpHCUNcbdvmXgiVv0JDZvyODPu/REgyiyuk01rEWvISOJ6mRKBqz2By/3BeswrU+Lg41DbVvEwtLvpHk6HEGB/SP71ewKDolC5JlMIO0bJ6ZvzdG1XWYY56aN8GqQKE+d+95rNl5uUCKC/IMXeB/aI=; 7:3/uZeO1qOd0oONlf0QLe/WASrwTiej8RH/ToMU0fAOwTwIgj36vRnjKQlsJ7aXHR15nPuo5PJYLBOLReoy+o7F1rk3CBmrG/oWnnkgQx5VDj8OzHdDOnbfxiGIb97t2HWGtuRuaeXeEUKqSZDRYeLIxTRp6vCVDha8BJgfvKW/AkpZk6ad15UVOeMnN5g5MV3rNSDyirqK7SrRMo0rx5UMVNfwekBo/girZowvtr5PnIzbdX6gg44FZmbwp5KiJu x-ms-office365-filtering-correlation-id: e7cb17e3-523b-43db-e929-08d6329f88c2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR08MB0770; x-ms-traffictypediagnostic: AM4PR08MB0770: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(228905959029699)(21748063052155)(28532068793085)(190501279198761)(227612066756510); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067); SRVR:AM4PR08MB0770; BCL:0; PCL:0; RULEID:; SRVR:AM4PR08MB0770; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39860400002)(376002)(136003)(396003)(69234005)(189003)(199004)(40434004)(2501003)(7696005)(44832011)(76176011)(2906002)(7736002)(5250100002)(99286004)(476003)(97736004)(4326008)(6506007)(74316002)(446003)(256004)(71200400001)(71190400001)(25786009)(5024004)(14444005)(229853002)(11346002)(53546011)(3846002)(6116002)(790700001)(486006)(33656002)(6306002)(72206003)(68736007)(54896002)(5660300001)(2900100001)(9686003)(86362001)(236005)(53936002)(110136005)(64126003)(58126008)(316002)(26005)(102836004)(6436002)(65826007)(186003)(8676002)(478600001)(81166006)(81156014)(8936002)(14454004)(55016002)(105586002)(6246003)(66066001)(106356001)(65806001)(65956001)(65966003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR08MB0770; H:AM4PR08MB2788.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Jd7tQbsxnMYBfpAEpCwWtS8G2SM0j/Fi65big41+dmmbeuu6fwntJ8eDZKgLfITjAnYW3/eZdSgPRNRYjfxfEEEdkeQNMouUqW6MRF8fRt7OQOG6GdieaCsGjJlVL8IctiyXXtuogK746GboD9iUBas2vhlwYfJwnb4aQDZPsCb94OPpVQsfIFbxPWlksnXb3AGrunmTbN290ZYQ+6L2Mbt1j6wIPJWN593GhmMEuM7A9VbDI4goQD4SbqDqJxAGyzq/uY9rD1sN00RoLGnuODEt/PHLfN6G/XZHHuNgh+ntFa1LVtTw0tsgRkqF+xWRhbXiq5ydrnxByeM7/PUPJVbG3GDQdkQ5DapRxucKgmQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7cb17e3-523b-43db-e929-08d6329f88c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 13:10:09.4542 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB0770 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [PATCH] uefi-sct/SctPkg:The original design for the 'EraseLengthGranularity' test need consider this case X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 13:10:12 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 RllJDQoNCk9uIDEwLzE1LzIwMTggMDI6NDQgQU0sIFN1cHJlZXRoIFZlbmthdGVzaCB3cm90ZToN Cg0KQ29tbWl0IE1lc3NhZ2UgbGVzcyB0aGFuIDgwIGNvbHMgcGxlYXNlLg0KDQoNCk9uIDEwLzEz LzIwMTggMDQ6NTEgUE0sIEVyaWMgSmluIHdyb3RlOg0KDQpGb3IgdGhlIFNEIGRldmljZSwgbm8g c2FtZSBhcyB0aGUgZU1NQywgdGhlICdFcmFzZUxlbmd0aEdyYW51bGFyaXR5JyBpcyAxLg0KDQpD YzogU3VwcmVldGggVmVua2F0ZXNoIDxzdXByZWV0aC52ZW5rYXRlc2hAYXJtLmNvbT48bWFpbHRv OnN1cHJlZXRoLnZlbmthdGVzaEBhcm0uY29tPg0KQ2M6IEppYXhpbiBXdSA8amlheGluLnd1QGlu dGVsLmNvbT48bWFpbHRvOmppYXhpbi53dUBpbnRlbC5jb20+DQpDb250cmlidXRlZC11bmRlcjog VGlhbm9Db3JlIENvbnRyaWJ1dGlvbiBBZ3JlZW1lbnQgMS4xDQpTaWduZWQtb2ZmLWJ5OiBFcmlj IEppbiA8ZXJpYy5qaW5AaW50ZWwuY29tPjxtYWlsdG86ZXJpYy5qaW5AaW50ZWwuY29tPg0KLS0t DQogIC4uLi9CbGFja0JveFRlc3QvRXJhc2VCbG9ja0JCVGVzdEZ1bmN0aW9uLmMgICB8IDE1NCAr KysrKysrKystLS0tLS0tLS0NCiAgMSBmaWxlIGNoYW5nZWQsIDc4IGluc2VydGlvbn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Qor ICAgICAgICBpZiAoUmVhZFN0YXR1cyA9PSBFRklfU1VDQ0VTUykgew0KKyAgICAgICAgICBmb3Ig KEluZGV4MSA9IDA7IEluZGV4MSA8IEJsb2NrU2l6ZTsgSW5kZXgxKyspIHsNCisgICAgICAgICAg ICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCisgICAgICAgICAgICAgIElzWmVybzEgPSBG QUxTRTsNCisgICAgICAgICAgICAgIGJyZWFrOw0KKyAgICAgICAgICAgIH0NCiAgICAgICAgICAg IH0NCi0gICAgICAgIH0NCiAgLSAgICAgICAgZm9yIChJbmRleDEgPSBCbG9ja1NpemU7IEluZGV4 MSA8IEJ1ZmZlclNpemUgLSBCbG9ja1NpemU7IEluZGV4MSsrKSB7DQotICAgICAgICAgIGlmIChC dWZmZXIyW0luZGV4MV0gIT0gMCkgew0KLSAgICAgICAgICAgIElzWmVybzIgPSBGQUxTRTsNCi0g ICAgICAgICAgICBicmVhazsNCisgICAgICAgICAgZm9yIChJbmRleDEgPSBCbG9ja1NpemU7IElu ZGV4MSA8IEJ1ZmZlclNpemUgLSBCbG9ja1NpemU7IEluZGV4MSsrKSB7DQorICAgICAgICAgICAg aWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQorICAgICAgICAgICAgICBJc1plcm8yID0gRkFM U0U7DQorICAgICAgICAgICAgICBicmVhazsNCisgICAgICAgICAgICB9DQogICAgICAgICAgICB9 DQotICAgICAgICB9DQogIC0gICAgICAgIGZvciAoSW5kZXgxID0gQnVmZmVyU2l6ZSAtIEJsb2Nr U2l6ZTsgSW5kZXgxIDwgQnVmZmVyU2l6ZTsgSW5kZXgxKyspIHsNCi0gICAgICAgICAgaWYgKEJ1 ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQotICAgICAgICAgICAgSXNaZXJvMyA9IEZBTFNFOw0KLSAg ICAgICAgICAgIGJyZWFrOw0KKyAgICAgICAgICBmb3IgKEluZGV4MSA9IEJ1ZmZlclNpemUgLSBC bG9ja1NpemU7IEluZGV4MSA8IEJ1ZmZlclNpemU7IEluZGV4MSsrKSB7DQorICAgICAgICAgICAg aWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQorICAgICAgICAgICAgICBJc1plcm8zID0gRkFM U0U7DQorICAgICAgICAgICAgICBicmVhazsNCisgICAgICAgICAgICB9DQogICAgICAgICAgICB9 DQotICAgICAgICB9DQogIC0gICAgICAgIGlmICgoRXJhc2VTdGF0dXMgPT0gRUZJX1NVQ0NFU1Mp ICYmIChJc1plcm8xID09IEZBTFNFKSAmJiAoSXNaZXJvMiA9PSBUUlVFKSAmJiAoKElzWmVybzMg PT0gRkFMU0UpKSkNCi0gICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VS VElPTl9QQVNTRUQ7DQotICAgICAgICBlbHNlDQotICAgICAgICAgIEFzc2VydGlvblR5cGUgPSBF RklfVEVTVF9BU1NFUlRJT05fRkFJTEVEOw0KKyAgICAgICAgICBpZiAoKEVyYXNlU3RhdHVzID09 IEVGSV9TVUNDRVNTKSAmJiAoSXNaZXJvMSA9PSBGQUxTRSkgJiYgKElzWmVybzIgPT0gVFJVRSkg JiYgKChJc1plcm8zID09IEZBTFNFKSkpDQpMZXNzIHRoYW4gODAgY29scy4NCg0KKyAgICAgICAg ICAgICAgIEFzc2VydGlvblR5cGUgPSBFRklfVEVTVF9BU1NFUlRJT05fUEFTU0VEOw0KKyAgICAg ICAgICBlbHNlDQorICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElP Tl9GQUlMRUQ7DQogICAgICAgICAgICAtICAgICAgICBTdGFuZGFyZExpYi0+UmVjb3JkQXNzZXJ0 aW9uICgNCi0gICAgICAgICAgICAgICAgICAgICAgIFN0YW5kYXJkTGliLA0KLSAgICAgICAgICAg ICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSwNCi0gICAgICAgICAgICAgICAgICAgICAgIGdFcmFz ZUJsb2NrQkJUZXN0RnVuY3Rpb25Bc3NlcnRpb25HdWlkMDAzLA0KLSAgICAgICAgICAgICAgICAg ICAgICAgTCJFcmFzZUJsb2NrcyAtIEVyYXNlQmxvY2tzIGZvciB0ZXN0aW5nLCB0aGUgZmlyc3Qv bGFzdCBibG9jayBzaG91bGQgbm90IGJlIGVyYXNlZCIsDQotICAgICAgICAgICAgICAgICAgICAg ICBMIiVhOiVkOkVyYXNlQmxvY2tzIFN0YXR1cyAtICVyLCBJc1plcm8xIC0gJWQsIElzWmVybzIg LSAlZCwgSXNaZXJvMyAtICVkIiwNCi0gICAgICAgICAgICAgICAgICAgICAgIF9fRklMRV9fLA0K LSAgICAgICAgICAgICAgICAgICAgICAgKFVJTlROKV9fTElORV9fLA0KLSAgICAgICAgICAgICAg ICAgICAgICAgU3RhdHVzLA0KLSAgICAgICAgICAgICAgICAgICAgICAgSXNaZXJvMSwgSXNaZXJv MiwgSXNaZXJvMw0KLSAgICAgICAgICAgICAgICAgICAgICAgKTsNCisgICAgICAgICAgU3RhbmRh cmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQorICAgICAgICAgICAgICAgICAgICAgICAgIFN0YW5k YXJkTGliLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICBBc3NlcnRpb25UeXBlLA0KKyAgICAg ICAgICAgICAgICAgICAgICAgICBnRXJhc2VCbG9ja0JCVGVzdEZ1bmN0aW9uQXNzZXJ0aW9uR3Vp ZDAwMywNCisgICAgICAgICAgICAgICAgICAgICAgICAgTCJFcmFzZUJsb2NrcyAtIEVyYXNlQmxv Y2tzIGZvciB0ZXN0aW5nLCB0aGUgZmlyc3QvbGFzdCBibG9jayBzaG91bGQgbm90IGJlIGVyYXNl ZCIsDQorICAgICAgICAgICAgICAgICAgICAgICAgIEwiJWE6JWQ6RXJhc2VCbG9ja3MgU3RhdHVz IC0gJXIsIElzWmVybzEgLSAlZCwgSXNaZXJvMiAtICVkLCBJc1plcm8zIC0gJWQiLA0KKyAgICAg ICAgICAgICAgICAgICAgICAgICBfX0ZJTEVfXywNCisgICAgICAgICAgICAgICAgICAgICAgICAg KFVJTlROKV9fTElORV9fLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICBFcmFzZVN0YXR1cywN CisgICAgICAgICAgICAgICAgICAgICAgICAgSXNaZXJvMSwgSXNaZXJvMiwgSXNaZXJvMw0KKyAg ICAgICAgICAgICAgICAgICAgICAgICApOw0KICArICAgICAgICB9DQogICAgICAgIH0NCi0NCiAg ICAgICAgLy8NCiAgICAgICAgLy8gRXJhc2UgQmxvY2tzIHdpdGggdGhlIEVyYXNlTGVuZ3RoR3Jh bnVsYXJpdHkgYmxvY2tzDQogICAgICAgIC8vDQpAQCAtNDUzLDEzICs0NTUsMTMgQEAgQmxvY2tJ bzI6DQogICAgICAgIC8vDQogICAgICAgIC8vIEVyYXNlIEJsb2NrcyB3aXRoIG5vbiBFcmFzZUxl bmd0aEdyYW51bGFyaXR5IGJsb2Nrcw0KICAgICAgICAvLw0KKyAgICAgIGlmIChCdWZmZXJTaXpl ID4gMiAqIEJsb2NrU2l6ZSkgew0KTWFnaWMgTnVtYmVyIDIuDQoNCisgICAgICAgIFRva2VuLkV2 ZW50ICAgICAgICAgICAgID0gTlVMTDsNCisgICAgICAgIFRva2VuLlRyYW5zYWN0aW9uU3RhdHVz ID0gRUZJX05PVF9SRUFEWTsNCiAgLSAgICAgIFRva2VuLkV2ZW50ICAgICAgICAgICAgID0gTlVM TDsNCi0gICAgICBUb2tlbi5UcmFuc2FjdGlvblN0YXR1cyA9IEVGSV9OT1RfUkVBRFk7DQotDQot ICAgICAgRW50ZXJFdmVudCA9IDA7DQorICAgICAgICBFbnRlckV2ZW50ID0gMDsNCiAgLSAgICAg IFN0YXR1cyA9IGd0QlMtPkNyZWF0ZUV2ZW50ICgNCisgICAgICAgIFN0YXR1cyA9IGd0QlMtPkNy ZWF0ZUV2ZW50ICgNCiAgICAgICAgICAgICAgICAgICAgIEVWVF9OT1RJRllfU0lHTkFMLA0KICAg ICAgICAgICAgICAgICAgICAgVFBMX0NBTExCQUNLLA0KICAgICAgICAgICAgICAgICAgICAgKEVG SV9FVkVOVF9OT1RJRlkpIE5vdGlmeUZ1bmN0aW9uLA0KQEAgLTQ2Nyw4ICs0NjksOCBAQCBCbG9j a0lvMjoNCiAgICAgICAgICAgICAgICAgICAgICZUb2tlbi5FdmVudA0KICAgICAgICAgICAgICAg ICAgICAgKTsNCiAgLSAgICAgIGlmIChFRklfRVJST1IgKFN0YXR1cykpIHsNCi0gICAgICAgIFN0 YW5kYXJkTGliLT5SZWNvcmRBc3NlcnRpb24gKA0KKyAgICAgICAgaWYgKEVGSV9FUlJPUiAoU3Rh dHVzKSkgew0KKyAgICAgICAgICBTdGFuZGFyZExpYi0+UmVjb3JkQXNzZXJ0aW9uICgNCiAgICAg ICAgICAgICAgICAgICAgICAgICBTdGFuZGFyZExpYiwNCiAgICAgICAgICAgICAgICAgICAgICAg ICBFRklfVEVTVF9BU1NFUlRJT05fRkFJTEVELA0KICAgICAgICAgICAgICAgICAgICAgICAgIGdU ZXN0R2VuZXJpY0ZhaWx1cmVHdWlkLA0KQEAgLTQ3OCw0NiArNDgwLDQ2IEBAIEJsb2NrSW8yOg0K ICAgICAgICAgICAgICAgICAgICAgICAgIChVSU5UTilfX0xJTkVfXywNCiAgICAgICAgICAgICAg ICAgICAgICAgICBTdGF0dXMNCiAgICAgICAgICAgICAgICAgICAgICAgICApOw0KLSAgICAgICAg RnJlZUFsaWduZWRQb29sKEJ1ZmZlcjEpOw0KLSAgICAgICAgRnJlZUFsaWduZWRQb29sKEJ1ZmZl cjIpOw0KLSAgICAgICAgZ290byBFbmQ7DQotICAgICAgfQ0KKyAgICAgICAgICBGcmVlQWxpZ25l ZFBvb2woQnVmZmVyMSk7DQorICAgICAgICAgIEZyZWVBbGlnbmVkUG9vbChCdWZmZXIyKTsNCisg ICAgICAgICAgZ290byBFbmQ7DQorICAgICAgICB9DQogIC0gICAgICBFc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ub3QgYmUgZXJhc2Vk DQorICAgICAgICBSZWFkU3RhdHVzID0gQmxvY2tJbzItPlJlYWRCbG9ja3NFeCAoQmxvY2tJbzIs IE1lZGlhSWQsIExiYSwgJkJsb2NrSW8yVG9rZW4sIEJ1ZmZlclNpemUsIChWT0lEKilCdWZmZXIy KTsNCisgICAgICAgIGlmIChSZWFkU3RhdHVzID09IEVGSV9TVUNDRVNTKSB7DQorICAgICAgICAg IGZvciAoSW5kZXgxID0gMDsgSW5kZXgxIDwgQmxvY2tTaXplOyBJbmRleDErKykgew0KKyAgICAg ICAgICAgIGlmIChCdWZmZXIyW0luZGV4MV0gIT0gMCkgew0KKyAgICAgICAgICAgICAgSXNaZXJv MSA9IEZBTFNFOw0KKyAgICAgICAgICAgICAgYnJlYWs7DQorICAgICAgICAgICAgfQ0KICAgICAg ICAgICAgfQ0KLSAgICAgICAgfQ0KICAtICAgICAgICBmb3IgKEluZGV4MSA9IEJsb2NrU2l6ZTsg SW5kZXgxIDwgQnVmZmVyU2l6ZSAtIEJsb2NrU2l6ZTsgSW5kZXgxKyspIHsNCi0gICAgICAgICAg aWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQotICAgICAgICAgICAgSXNaZXJvMiA9IEZBTFNF Ow0KLSAgICAgICAgICAgIGJyZWFrOw0KKyAgICAgICAgICBmb3IgKEluZGV4MSA9IEJsb2NrU2l6 ZTsgSW5kZXgxIDwgQnVmZmVyU2l6ZSAtIEJsb2NrU2l6ZTsgSW5kZXgxKyspIHsNCisgICAgICAg ICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCisgICAgICAgICAgICAgIElzWmVybzIg PSBGQUxTRTsNCisgICAgICAgICAgICAgIGJyZWFrOw0KKyAgICAgICAgICAgIH0NCiAgICAgICAg ICAgIH0NCi0gICAgICAgIH0NCiAgLSAgICAgICAgZm9yIChJbmRleDEgPSBCdWZmZXJTaXplIC0g QmxvY2tTaXplOyBJbmRleDEgPCBCdWZmZXJTaXplOyBJbmRleDErKykgew0KLSAgICAgICAgICBp ZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCi0gICAgICAgICAgICBJc1plcm8zID0gRkFMU0U7 DQotICAgICAgICAgICAgYnJlYWs7DQorICAgICAgICAgIGZvciAoSW5kZXgxID0gQnVmZmVyU2l6 ZSAtIEJsb2NrU2l6ZTsgSW5kZXgxIDwgQnVmZmVyU2l6ZTsgSW5kZXgxKyspIHsNCisgICAgICAg ICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCisgICAgICAgICAgICAgIElzWmVybzMg PSBGQUxTRTsNCisgICAgICAgICAgICAgIGJyZWFrOw0KKyAgICAgICAgICAgIH0NCiAgICAgICAg ICAgIH0NCi0gICAgICAgIH0NCiAgLSAgICAgICAgaWYgKChFcmFzZVN0YXR1cyA9PSBFRklfU1VD Q0VTUykgJiYgKElzWmVybzEgPT0gRkFMU0UpICYmIChJc1plcm8yID09IFRSVUUpICYmICgoSXNa ZXJvMyA9PSBGQUxTRSkpKQ0KLSAgICAgICAgICAgICBBc3NlcnRpb25UeXBlID0gRUZJX1RFU1Rf QVNTRVJUSU9OX1BBU1NFRDsNCi0gICAgICAgIGVsc2UNCi0gICAgICAgICAgQXNzZXJ0aW9uVHlw ZSA9IEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQ7DQorICAgICAgICAgIGlmICgoRXJhc2VTdGF0 dXMgPT0gRUZJX1NVQ0NFU1MpICYmIChJc1plcm8xID09IEZBTFNFKSAmJiAoSXNaZXJvMiA9PSBU UlVFKSAmJiAoKElzWmVybzMgPT0gRkFMU0UpKSkNCmxlc3MgdGhhbiA4MCBjb2xzLg0KDQorICAg ICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElPTl9QQVNTRUQ7DQor ICAgICAgICAgIGVsc2UNCisgICAgICAgICAgICBBc3NlcnRpb25UeXBlID0gRUZJX1RFU1RfQVNT RVJUSU9OX0ZBSUxFRDsNCiAgICAgICAgICAgIC0gICAgICAgIFN0YW5kYXJkTGliLT5SZWNvcmRB c3NlcnRpb24gKA0KKyAgICAgICAgICBTdGFuZGFyZExpYi0+UmVjb3JkQXNzZXJ0aW9uICgNCiAg ICAgICAgICAgICAgICAgICAgICAgICBTdGFuZGFyZExpYiwNCiAgICAgICAgICAgICAgICAgICAg ICAgICBBc3NlcnRpb25UeXBlLA0KICAgICAgICAgICAgICAgICAgICAgICAgIGdFcmFzZUJsb2Nr QkJUZXN0RnVuY3Rpb25Bc3NlcnRpb25HdWlkMDA0LA0KQEAgLTUyNSwxMiArNTI3LDEyIEBAIEJs b2NrSW8yOg0KICAgICAgICAgICAgICAgICAgICAgICAgIEwiJWE6JWQ6RXJhc2VCbG9ja3MgU3Rh dHVzIC0gJXIsIElzWmVybzEgLSAlZCwgSXNaZXJvMiAtICVkLCBJc1plcm8zIC0gJWQiLA0KICAg ICAgICAgICAgICAgICAgICAgICAgIF9fRklMRV9fLA0KICAgICAgICAgICAgICAgICAgICAgICAg IChVSU5UTilfX0xJTkVfXywNCi0gICAgICAgICAgICAgICAgICAgICAgIFN0YXR1cywNCisgICAg ICAgICAgICAgICAgICAgICAgIEVyYXNlU3RhdHVzLA0KICAgICAgICAgICAgICAgICAgICAgICAg IElzWmVybzEsIElzWmVybzIsIElzWmVybzMNCiAgICAgICAgICAgICAgICAgICAgICAgICApOw0K ICArICAgICAgICB9DQogICAgICAgIH0NCi0NCiAgICAgICAgLy8NCiAgICAgICAgLy8gRXJhc2Ug QmxvY2tzIHdpdGggdGhlIEVyYXNlTGVuZ3RoR3JhbnVsYXJpdHkgYmxvY2tzDQogICAgICAgIC8v DQoNCg0KSU1QT1JUQU5UIE5PVElDRTogVGhlIGNvbnRlbnRzIG9mIHRoaXMgZW1haWwgYW5kIGFu eSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50aWFsIGFuZCBtYXkgYWxzbyBiZSBwcml2aWxlZ2Vk LiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2Ugbm90aWZ5IHRo ZSBzZW5kZXIgaW1tZWRpYXRlbHkgYW5kIGRvIG5vdCBkaXNjbG9zZSB0aGUgY29udGVudHMgdG8g YW55IG90aGVyIHBlcnNvbiwgdXNlIGl0IGZvciBhbnkgcHVycG9zZSwgb3Igc3RvcmUgb3IgY29w eSB0aGUgaW5mb3JtYXRpb24gaW4gYW55IG1lZGl1bS4gVGhhbmsgeW91Lg0K