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.41; 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-eopbgr00041.outbound.protection.outlook.com [40.107.0.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6C01A21164C6B for ; Mon, 15 Oct 2018 06:10:05 -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=ljE5aUqufMVO3v7lSDA6WzfLsZig+xepgwTTmXHSyjU=; b=UyqPgJc2NkRMlsBgEFe2Vot6rclOExa2dr4CWFc+Wqt00kNm6Xv/W2mZJT0TuXYQXBePQTuFJamcYHkjH3dJYugXUsBMtRiX2FByKiogiqzag4fbrsorxHdEMYtvVPw+gqGUkDgZJxo9MXTBdw9anzKMXd9K3XijOvSs8zXht/8= 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:02 +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:02 +0000 From: Supreeth Venkatesh To: Eric Jin , "edk2-devel@lists.01.org" CC: Jiaxin Wu , Supreeth Venkatesh Thread-Topic: [PATCH] uefi-sct/SctPkg:The original design for the 'EraseLengthGranularity' test need consider this case Thread-Index: AQHUYwyVZ7lQnhs2nkWNGYV1bOjsE6UfPhQAgAC1dAA= Date: Mon, 15 Oct 2018 13:10:02 +0000 Message-ID: References: <20181013155111.560-1-eric.jin@intel.com> <61ec5985-249f-472a-89be-e143882fb015@arm.com> In-Reply-To: <61ec5985-249f-472a-89be-e143882fb015@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:l95zhhZon8ZO6L8LA50SPWoWz1WA2U4zAZI/apzZ7J+Y7n9UnPjvj+/fuOr5u15WmQyc1WjFS9IsJVg1GipbXIvr0uAszHTNwWPx7wP3uMbGmr12TlEnHb9a3z4Ruf6yrALEopmWv5m99UwXBSywQbWzSwmelj2frF5oY4WddIIf8k5PRzBsJZBFYtZ+uVAYUbwA4byTiRWxJRDHyIka3Q0k4oGo7ZX0bs4Uc+HIUfr1Stvieuv/LAsr7qGf5GHY9qU4SlPMnkNu3bnYYqINf6lf92FhIqaG27xn9gAKpb/6fiDXNI9t0JI/wVn3GSImhqG6lQe4NALEx2FQpSfPkSHsz7nIqPdPPobrLMohy/sO44kccwUXTK2GdNramykY4qSiiehangbI81Yan2/uXGxgyq1sCRpBXEB36LUquFnRmMciFX6VkHmDGg81j4rmwjXDJf2isaO3D2c0xFE9pQ==; 5:CWJaSkMsyHLws9TMh4O0zkco4HbpSLOBCGYxMNPQGRyBCx47cImYKWqwegGXkpKpQjvWbw4OM758GCTKTn9Qv6sqQVm2uFkTAkVee7IYPFyzU5TaFWCQQG+v30QhpGHiTJRHNFrSPe1OKNkrLy7S3qRSNCT/o3vBVpaJpmsuDag=; 7:+2CxYJ68JISa5tX3aoN/pSCNx6v/sko4PEHs6u6pS8QmDP/TL7Kkbxz4OWuonLyHfLBqvkKx//KAAFUw1ZFHREDJLR0K4llw04MC7xSSPh118XiypwvkWDNF/54UpMezDH974lFQ8e4DSqgHnE/BFJX0EA7428TlimRfmhEeAxyXhpl3gHo+gujFCA0sAZ/zLVbMFw4feYeXzxfM+5o4fZfocsnlyepYeyoszunug4CX3Yd+AAez5F7dqQO2wTrq x-ms-office365-filtering-correlation-id: bad88943-bce2-4048-8fc1-08d6329f84ba 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)(53946003)(6306002)(72206003)(68736007)(54896002)(5660300001)(2900100001)(9686003)(86362001)(236005)(53936002)(110136005)(64126003)(54906003)(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: NnhzJz8SMvjWCTwXqiSTF/jDn0dGlqs2GKjYyt79j2AodSUPDnvzwudxPA9ulXyDWnZn5RYyrWy7hs6HglgTRJZrva0vq1JK46cbs7qXtvbPZoDRqnw+DciC7Pgn5VYqEXmLGSkogIxg8JlpCjKMF1RSUGr/uJl5PoFKZfViyV2DzLBX7CqwaLzgvBldiOMkTk4QEahP0JhNjkigcuq8G7mEAVZqNg6MikrQ6b8yPZxMbSI1kU6u/IP1lA4gafKlf3VzkY++jYxjpVbLPXnl3pjxZZGZM/wXrqhJ8ZVbXUvdcwJY7nvhUBNiT9eV9SRvDRBpwMBNDgR7PyZ3ndgSmcEiI4otMJItvZgMPp93ARk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad88943-bce2-4048-8fc1-08d6329f84ba X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 13:10:02.6886 (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:06 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 RllJDQoNCk9uIDEwLzE1LzIwMTggMDM6MDggQU0sIFN1cHJlZXRoIFZlbmthdGVzaCB3cm90ZToN Cg0KDQoNCkNvbW1pdCBNZXNzYWdlIGxlc3MgdGhhbiA4MCBjb2xzIHBsZWFzZS4NCg0KT24gMTAv MTMvMjAxOCAwNDo1MSBQTSwgRXJpYyBKaW4gd3JvdGU6DQoNCkZvciB0aGUgU0QgZGV2aWNlLCBu byBzYW1lIGFzIHRoZSBlTU1DLCB0aGUgJ0VyYXNlTGVuZ3RoR3JhbnVsYXJpdHknIGlzIDEuDQoN Cg0KDQpDYzogU3VwcmVldGggVmVua2F0ZXNoIDxzdXByZWV0aC52ZW5rYXRlc2hAYXJtLmNvbT48 bWFpbHRvOnN1cHJlZXRoLnZlbmthdGVzaEBhcm0uY29tPg0KDQpDYzogSmlheGluIFd1IDxqaWF4 aW4ud3VAaW50ZWwuY29tPjxtYWlsdG86amlheGluLnd1QGludGVsLmNvbT4NCg0KQ29udHJpYnV0 ZWQtdW5kZXI6IFRpYW5vQ29yZSBDb250cmlidXRpb24gQWdyZWVtZW50IDEuMQ0KDQpTaWduZWQt b2ZmLWJ5OiBFcmljIEppbiA8ZXJpYy5qaW5AaW50ZWwuY29tPjxtYWlsdG86ZXJpYy5qaW5AaW50 ZWwuY29tPg0KDQotLS0NCg0KIC4uLi9CbGFja0JveFRlc3QvRXJhc2VCbG9ja0JCVGVzdEZ1bmN0 aW9uLmMgICB8IDE1NCArKysrKysrKystLS0tLS0tLS0NCg0KIDEgZmlsZSBjaG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ICAgUmVhZFN0YXR1cyA9IEJsb2Nr SW8tPlJlYWRCbG9ja3MgKEJsb2NrSW8sIE1lZGlhSWQsIExiYSwgQnVmZmVyU2l6ZSwgKFZPSUQq KUJ1ZmZlcjIpOw0KDQorICAgICAgICBpZiAoUmVhZFN0YXR1cyA9PSBFRklfU1VDQ0VTUykgew0K DQorICAgICAgICAgIGZvciAoSW5kZXgxID0gMDsgSW5kZXgxIDwgQmxvY2tTaXplOyBJbmRleDEr Kykgew0KDQorICAgICAgICAgICAgaWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQoNCisgICAg ICAgICAgICAgIElzWmVybzEgPSBGQUxTRTsNCg0KKyAgICAgICAgICAgICAgYnJlYWs7DQoNCisg ICAgICAgICAgICB9DQoNCiAgICAgICAgICAgfQ0KDQotICAgICAgICB9DQoNCg0KDQotICAgICAg ICBmb3IgKEluZGV4MSA9IEJsb2NrU2l6ZTsgSW5kZXgxIDwgQnVmZmVyU2l6ZSAtIEJsb2NrU2l6 ZTsgSW5kZXgxKyspIHsNCg0KLSAgICAgICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsN Cg0KLSAgICAgICAgICAgIElzWmVybzIgPSBGQUxTRTsNCg0KLSAgICAgICAgICAgIGJyZWFrOw0K DQorICAgICAgICAgIGZvciAoSW5kZXgxID0gQmxvY2tTaXplOyBJbmRleDEgPCBCdWZmZXJTaXpl IC0gQmxvY2tTaXplOyBJbmRleDErKykgew0KDQorICAgICAgICAgICAgaWYgKEJ1ZmZlcjJbSW5k ZXgxXSAhPSAwKSB7DQoNCisgICAgICAgICAgICAgIElzWmVybzIgPSBGQUxTRTsNCg0KKyAgICAg ICAgICAgICAgYnJlYWs7DQoNCisgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgfQ0KDQotICAg ICAgICB9DQoNCg0KDQotICAgICAgICBmb3IgKEluZGV4MSA9IEJ1ZmZlclNpemUgLSBCbG9ja1Np emU7IEluZGV4MSA8IEJ1ZmZlclNpemU7IEluZGV4MSsrKSB7DQoNCi0gICAgICAgICAgaWYgKEJ1 ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQoNCi0gICAgICAgICAgICBJc1plcm8zID0gRkFMU0U7DQoN Ci0gICAgICAgICAgICBicmVhazsNCg0KKyAgICAgICAgICBmb3IgKEluZGV4MSA9IEJ1ZmZlclNp emUgLSBCbG9ja1NpemU7IEluZGV4MSA8IEJ1ZmZlclNpemU7IEluZGV4MSsrKSB7DQoNCisgICAg ICAgICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCg0KKyAgICAgICAgICAgICAgSXNa ZXJvMyA9IEZBTFNFOw0KDQorICAgICAgICAgICAgICBicmVhazsNCg0KKyAgICAgICAgICAgIH0N Cg0KICAgICAgICAgICB9DQoNCi0gICAgICAgIH0NCg0KDQoNCi0gICAgICAgIGlmICgoRXJhc2VT dGF0dXMgPT0gRUZJX1NVQ0NFU1MpICYmIChJc1plcm8xID09IEZBTFNFKSAmJiAoSXNaZXJvMiA9 PSBUUlVFKSAmJiAoKElzWmVybzMgPT0gRkFMU0UpKSkNCg0KLSAgICAgICAgICAgIEFzc2VydGlv blR5cGUgPSBFRklfVEVTVF9BU1NFUlRJT05fUEFTU0VEOw0KDQotICAgICAgICBlbHNlDQoNCi0g ICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQ7DQoNCisg ICAgICAgICAgaWYgKChFcmFzZVN0YXR1cyA9PSBFRklfU1VDQ0VTUykgJiYgKElzWmVybzEgPT0g RkFMU0UpICYmIChJc1plcm8yID09IFRSVUUpICYmICgoSXNaZXJvMyA9PSBGQUxTRSkpKQ0KTGVz cyB0aGFuIDgwIGNvbHMuDQoNCg0KKyAgICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9U RVNUX0FTU0VSVElPTl9QQVNTRUQ7DQoNCisgICAgICAgICAgZWxzZQ0KDQorICAgICAgICAgICAg QXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQ7DQoNCg0KDQoNCg0KLSAg ICAgICAgU3RhbmRhcmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQoNCi0gICAgICAgICAgICAgICAg ICAgICAgIFN0YW5kYXJkTGliLA0KDQotICAgICAgICAgICAgICAgICAgICAgICBBc3NlcnRpb25U eXBlLA0KDQotICAgICAgICAgICAgICAgICAgICAgICBnRXJhc2VCbG9ja0JCVGVzdEZ1bmN0aW9u QXNzZXJ0aW9uR3VpZDAwMywNCg0KLSAgICAgICAgICAgICAgICAgICAgICAgTCJFcmFzZUJsb2Nr cyAtIEVyYXNlQmxvY2tzIGZvciB0ZXN0aW5nLCB0aGUgZmlyc3QvbGFzdCBibG9jayBzaG91bGQg bm90IGJlIGVyYXNlZCIsDQoNCi0gICAgICAgICAgICAgICAgICAgICAgIEwiJWE6JWQ6RXJhc2VC bG9ja3MgU3RhdHVzIC0gJXIsIElzWmVybzEgLSAlZCwgSXNaZXJvMiAtICVkLCBJc1plcm8zIC0g JWQiLA0KDQotICAgICAgICAgICAgICAgICAgICAgICBfX0ZJTEVfXywNCg0KLSAgICAgICAgICAg ICAgICAgICAgICAgKFVJTlROKV9fTElORV9fLA0KDQotICAgICAgICAgICAgICAgICAgICAgICBT dGF0dXMsDQoNCi0gICAgICAgICAgICAgICAgICAgICAgIElzWmVybzEsIElzWmVybzIsIElzWmVy bzMNCg0KLSAgICAgICAgICAgICAgICAgICAgICAgKTsNCg0KKyAgICAgICAgICBTdGFuZGFyZExp Yi0+UmVjb3JkQXNzZXJ0aW9uICgNCg0KKyAgICAgICAgICAgICAgICAgICAgICAgICBTdGFuZGFy ZExpYiwNCg0KKyAgICAgICAgICAgICAgICAgICAgICAgICBBc3NlcnRpb25UeXBlLA0KDQorICAg ICAgICAgICAgICAgICAgICAgICAgIGdFcmFzZUJsb2NrQkJUZXN0RnVuY3Rpb25Bc3NlcnRpb25H dWlkMDAzLA0KDQorICAgICAgICAgICAgICAgICAgICAgICAgIEwiRXJhc2VCbG9ja3MgLSBFcmFz ZUJsb2NrcyBmb3IgdGVzdGluZywgdGhlIGZpcnN0L2xhc3QgYmxvY2sgc2hvdWxkIG5vdCBiZSBl cmFzZWQiLA0KDQorICAgICAgICAgICAgICAgICAgICAgICAgIEwiJWE6JWQ6RXJhc2VCbG9ja3Mg U3RhdHVzIC0gJXIsIElzWmVybzEgLSAlZCwgSXNaZXJvMiAtICVkLCBJc1plcm8zIC0gJWQiLA0K DQorICAgICAgICAgICAgICAgICAgICAgICAgIF9fRklMRV9fLA0KDQorICAgICAgICAgICAgICAg ICAgICAgICAgIChVSU5UTilfX0xJTkVfXywNCg0KKyAgICAgICAgICAgICAgICAgICAgICAgICBF cmFzZVN0YXR1cywNCg0KKyAgICAgICAgICAgICAgICAgICAgICAgICBJc1plcm8xLCBJc1plcm8y LCBJc1plcm8zDQoNCisgICAgICAgICAgICAgICAgICAgICAgICAgKTsNCg0KDQoNCisgICAgICAg IH0NCg0KICAgICAgIH0NCg0KLQ0KDQogICAgICAgLy8NCg0KICAgICAgIC8vIEVyYXNlIEJsb2Nr cyB3aXRoIHRoZSBFcmFzZUxlbmd0aEdyYW51bGFyaXR5IGJsb2Nrcw0KDQogICAgICAgLy8NCg0K QEAgLTQ1MywxMyArNDU1LDEzIEBAIEJsb2NrSW8yOg0KDQogICAgICAgLy8NCg0KICAgICAgIC8v IEVyYXNlIEJsb2NrcyB3aXRoIG5vbiBFcmFzZUxlbmd0aEdyYW51bGFyaXR5IGJsb2Nrcw0KDQog ICAgICAgLy8NCg0KKyAgICAgIGlmIChCdWZmZXJTaXplID4gMiAqIEJsb2NrU2l6ZSkgew0KTWFn aWMgTnVtYmVyIDIuDQoNCg0KKyAgICAgICAgVG9rZW4uRXZlbnQgICAgICAgICAgICAgPSBOVUxM Ow0KDQorICAgICAgICBUb2tlbi5UcmFuc2FjdGlvblN0YXR1cyA9IEVGSV9OT1RfUkVBRFk7DQoN Cg0KDQotICAgICAgVG9rZW4uRXZlbnQgICAgICAgICAgICAgPSBOVUxMOw0KDQotICAgICAgVG9r ZW4uVHJhbnNhY3Rpb25TdGF0dXMgPSBFRklfTk9UX1JFQURZOw0KDQotDQoNCi0gICAgICBFbnRl ckV2ZW50ID0gMDsNCg0KKyAgICAgICAgRW50ZXJFdmVudCA9IDA7DQoNCg0KDQotICAgICAgU3Rh dHVzID0gZ3RCUy0+Q3JlYXRlRXZlbnQgKA0KDQorICAgICAgICBTdGF0dXMgPSBndEJTLT5DcmVh dGVFdmVudCAoDQoNCiAgICAgICAgICAgICAgICAgICAgRVZUX05PVElGWV9TSUdOQUwsDQoNCiAg ICAgICAgICAgICAgICAgICAgVFBMX0NBTExCQUNLLA0KDQogICAgICAgICAgICAgICAgICAgIChF RklfRVZFTlRfTk9USUZZKSBOb3RpZnlGdW5jdGlvbiwNCg0KQEAgLTQ2Nyw4ICs0NjksOCBAQCBC bG9ja0lvMjoNCg0KICAgICAgICAgICAgICAgICAgICAmVG9rZW4uRXZlbnQNCg0KICAgICAgICAg ICAgICAgICAgICApOw0KDQoNCg0KLSAgICAgIGlmIChFRklfRVJST1IgKFN0YXR1cykpIHsNCg0K LSAgICAgICAgU3RhbmRhcmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQoNCisgICAgICAgIGlmIChF RklfRVJST1IgKFN0YXR1cykpIHsNCg0KKyAgICAgICAgICBTdGFuZGFyZExpYi0+UmVjb3JkQXNz ZXJ0aW9uICgNCg0KICAgICAgICAgICAgICAgICAgICAgICAgU3RhbmRhcmRMaWIsDQoNCiAgICAg ICAgICAgICAgICAgICAgICAgIEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQsDQoNCiAgICAgICAg ICAgICAgICAgICAgICAgIGdUZXN0R2VuZXJpY0ZhaWx1cmVHdWlkLA0KDQpAQCAtNDc4LDQ2ICs0 ODAsNDYgQEAgQmxvY2tJbzI6DQoNCiAgICAgICAgICAgICAgICAgICAgICAgI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0KLSAgICAgICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9 IDApIHsNCg0KLSAgICAgICAgICAgIElzWmVybzIgPSBGQUxTRTsNCg0KLSAgICAgICAgICAgIGJy ZWFrOw0KDQorICAgICAgICAgIGZvciAoSW5kZXgxID0gQmxvY2tTaXplOyBJbmRleDEgPCBCdWZm ZXJTaXplIC0gQmxvY2tTaXplOyBJbmRleDErKykgew0KDQorICAgICAgICAgICAgaWYgKEJ1ZmZl cjJbSW5kZXgxXSAhPSAwKSB7DQoNCisgICAgICAgICAgICAgIElzWmVybzIgPSBGQUxTRTsNCg0K KyAgICAgICAgICAgICAgYnJlYWs7DQoNCisgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgfQ0K DQotICAgICAgICB9DQoNCg0KDQotICAgICAgICBmb3IgKEluZGV4MSA9IEJ1ZmZlclNpemUgLSBC bG9ja1NpemU7IEluZGV4MSA8IEJ1ZmZlclNpemU7IEluZGV4MSsrKSB7DQoNCi0gICAgICAgICAg aWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7DQoNCi0gICAgICAgICAgICBJc1plcm8zID0gRkFM U0U7DQoNCi0gICAgICAgICAgICBicmVhazsNCg0KKyAgICAgICAgICBmb3IgKEluZGV4MSA9IEJ1 ZmZlclNpemUgLSBCbG9ja1NpemU7IEluZGV4MSA8IEJ1ZmZlclNpemU7IEluZGV4MSsrKSB7DQoN CisgICAgICAgICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCg0KKyAgICAgICAgICAg ICAgSXNaZXJvMyA9IEZBTFNFOw0KDQorICAgICAgICAgICAgICBicmVhazsNCg0KKyAgICAgICAg ICAgIH0NCg0KICAgICAgICAgICB9DQoNCi0gICAgICAgIH0NCg0KDQoNCi0gICAgICAgIGlmICgo RXJhc2VTdGF0dXMgPT0gRUZJX1NVQ0NFU1MpICYmIChJc1plcm8xID09IEZBTFNFKSAmJiAoSXNa ZXJvMiA9PSBUUlVFKSAmJiAoKElzWmVybzMgPT0gRkFMU0UpKSkNCg0KLSAgICAgICAgICAgIEFz c2VydGlvblR5cGUgPSBFRklfVEVTVF9BU1NFUlRJT05fUEFTU0VEOw0KDQotICAgICAgICBlbHNl DQoNCi0gICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQ7 DQoNCisgICAgICAgICAgaWYgKChFcmFzZVN0YXR1cyA9PSBFRklfU1VDQ0VTUykgJiYgKElzWmVy bzEgPT0gRkFMU0UpICYmIChJc1plcm8yID09IFRSVUUpICYmICgoSXNaZXJvMyA9PSBGQUxTRSkp KQ0KbGVzcyB0aGFuIDgwIGNvbHMuDQoNCg0KKyAgICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSA9 IEVGSV9URVNUX0FTU0VSVElPTl9QQVNTRUQ7DQoNCisgICAgICAgICAgZWxzZQ0KDQorICAgICAg ICAgICAgQXNzZXJ0aW9uVHlwZSA9IEVGSV9URVNUX0FTU0VSVElPTl9GQUlMRUQ7DQoNCg0KDQoN Cg0KLSAgICAgICAgU3RhbmRhcmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQoNCisgICAgICAgICAg U3RhbmRhcmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQoNCiAgICAgICAgICAgICAgICAgICAgICAg IFN0YW5kYXJkTGliLA0KDQogICAgICAgICAgICAgICAgICAgICAgICBBc3NlcnRpb25UeXBlLA0K DQogICAgICAgICAgICAgICAgICAgICAgICBnRXJhc2VCbG9ja0JCVGVzdEZ1bmN0aW9uQXNzZXJ0 aW9uR3VpZDAwNCwNCg0KQEAgLTUyNSwxMiArNTI3LDEyIEBAIEJsb2NrSW8yOg0KDQogICAgICAg ICAgICAgICAgICAgICAgICBMIiVhOiVkOkVyYXNlQmxvY2tzIFN0YXR1cyAtICVyLCBJc1plcm8x IC0gJWQsIElzWmVybzIgLSAlZCwgSXNaZXJvMyAtICVkIiwNCg0KICAgICAgICAgICAgICAgICAg ICAgICAgX19GSUxFX18sDQoNCiAgICAgICAgICAgICAgICAgICAgICAgIChVSU5UTilfX0xJTkVf XywNCg0KLSAgICAgICAgICAgICAgICAgICAgICAgU3RhdHVzLA0KDQorICAgICAgICAgICAgICAg ICAgICAgICBFcmFzZVN0YXR1cywNCg0KICAgICAgICAgICAgICAgICAgICAgICAgSXNaZXJvMSwg SXNaZXJvMiwgSXNaZXJvMw0KDQogICAgICAgICAgICAgICAgICAgICAgICApOw0KDQoNCg0KKyAg ICAgICAgfQ0KDQogICAgICAgfQ0KDQotDQoNCiAgICAgICAvLw0KDQogICAgICAgLy8gRXJhc2Ug QmxvY2tzIHdpdGggdGhlIEVyYXNlTGVuZ3RoR3JhbnVsYXJpdHkgYmxvY2tzDQoNCiAgICAgICAv Lw0KDQoNCklNUE9SVEFOVCBOT1RJQ0U6IFRoZSBjb250ZW50cyBvZiB0aGlzIGVtYWlsIGFuZCBh bnkgYXR0YWNobWVudHMgYXJlIGNvbmZpZGVudGlhbCBhbmQgbWF5IGFsc28gYmUgcHJpdmlsZWdl ZC4gSWYgeW91IGFyZSBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVudCwgcGxlYXNlIG5vdGlmeSB0 aGUgc2VuZGVyIGltbWVkaWF0ZWx5IGFuZCBkbyBub3QgZGlzY2xvc2UgdGhlIGNvbnRlbnRzIHRv IGFueSBvdGhlciBwZXJzb24sIHVzZSBpdCBmb3IgYW55IHB1cnBvc2UsIG9yIHN0b3JlIG9yIGNv cHkgdGhlIGluZm9ybWF0aW9uIGluIGFueSBtZWRpdW0uIFRoYW5rIHlvdS4NCg==