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.59; 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-eopbgr00059.outbound.protection.outlook.com [40.107.0.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6FF0121173C7E for ; Mon, 15 Oct 2018 06:09:50 -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=y9xqE7vi/2Sml4f0/Mg0hC6zmk4kbe8GEHnFBV0ER9I=; b=r074axPJP25y1pscjV8/Dx+cG7ZJlyqUj5c/F8pmJlkexu9/EZl9r70tgqqgJoL9bh4IKHgROooiBqgAC+E4pmzuAHFsysa8U6/CHDt5R7JKcL5B7T4aouQGeJ1R3YuUx+ahJKQ9PBU5ihgIHK/iHZZpW0XZn1dLeRHkSuVYCw8= 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:09:48 +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:09:48 +0000 From: Supreeth Venkatesh To: Eric Jin , "edk2-devel@lists.01.org" CC: Jiaxin Wu , Supreeth Venkatesh Thread-Topic: [PATCH] uefi-sct/SctPkg:Fix the incorrect buffer free in SctAPrint() Thread-Index: AQHUY2F+c4eBZXvXIU6+Mcwvy5rmXKUfQeoAgACyTQA= Date: Mon, 15 Oct 2018 13:09:48 +0000 Message-ID: References: <20181014015858.3852-1-eric.jin@intel.com> <29c1ba36-34e6-2f4a-7709-167d2ec69c6e@arm.com> In-Reply-To: <29c1ba36-34e6-2f4a-7709-167d2ec69c6e@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:SO7ke0zp83Ia/t1TcRQidguIbdCFqms4vy2pLbZLZbQHDCxfhTk684h4awd12x80XgjT8sWuto+Gjr8VJAiXFmXtHstpXR+AYnlYgCZHzm8s/uJXBGRhFAH9tPHXSzoI36jakfgp4ysKp2FfF2Uu8gK0YIi2I5VfNjg4SrZLHSrZsY6QHZNTSBN68u2pkzmumi9nBdWX663tzVVOZ5cDRz0DkxLfOCGkbiDA7tuQcavuhWwQ6DFSXIE+T1k3wdYAyW+hOWRGUeCeLE1dB6PtcqE4Hw2uh8HPtE2c2dy1+sOaRYcHOKDWi+J808mymrjIZBwyjj2AxngOO3ubAUgWr/zrAkVBwnvysEeSbjD8OpUNvJ7+7OvvPmnnRRLLez4r2469f4VLWEpk4wAhAd0Lcbq51oyja2RHGuw0C+AShOV4qxWwdVM/ZRwPvWZhyrHCARJAhqjpw27ZjF73Uhwb7w==; 5:eWIjoAeuS69p4B0md6xIVaowznJsIu4Xv7y8mNCAkPAvPM+RrBrOQrjnekY33iCo23E9oa6+zZRPguA+0tt2hFfQ6pIddGBuRlbCmGaoQy+IopjJ+hug+Rt9lsM3q2WY1fLIgWj9smh63CyWvZMlruIv1RCxnDLSf5Fndb+hHOc=; 7:8qECkC2DVuyqyKly11rZEnK61kzQbxyL4yUU1JbgQpl6HWNPjn6laJCw3RiAX8eJgosyjc+g14DmcUz8wFz6ry92KosoLHIT72vw3qQBtM8rn1DY2hEBZPkwE00K5ak76LbknyEPy7ky5f+uAMXBPHgytob9s9AsvvmQ/1SCP31Lasjb8mxY64hsMwRC15LUKB2izT/HzEmxeaxm2YtC517O+Nq3BfrhfpkPj/vQBRHDKIyFCIqFeirVpMLpTZo3 x-ms-office365-filtering-correlation-id: d1981681-48d9-416b-324b-08d6329f7c1d 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)(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)(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: thCHf6IEFzQafhNjcp+CB+Wy/X+kNMxCS4ip5LUYK5uUGiF2uhx5RejRE/beXbEGy6HQkNb0RMIVouAcoY3YSsZ48rkNOp4/S+TdxdjlW0+mSNplSJt0ZsBqLvaQWbj3kgLJTo19H0K5XDGkjyjFGtfPMoR1wFR4EdAYHqD3kklAKorzntQQrvMNwfEUpzA8XYMMAnv2SD8V+OcibORzTwjDGcNJ+/oanOWLqtkC+FyduEW+uKqWH3/BTUtZEWUEoQU++Yelx6FIfMGjD2OFv4iUZbUUfHMVI+iG6Bpgtizu+jPDR0d3gynmY5u8Z3S8ZaLYW9hZt7E5utem9qTxR8zV0DsWVbuXF03qXPiLeOo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1981681-48d9-416b-324b-08d6329f7c1d X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 13:09:48.2199 (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:Fix the incorrect buffer free in SctAPrint() 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:09:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCk9uIDEwLzE1LzIwMTggMDM6MjQgQU0sIFN1cHJlZXRoIFZlbmthdGVzaCB3cm90ZToNClJl dmlld2VkLWJ5OiBTdXByZWV0aCBWZW5rYXRlc2ggPHN1cHJlZXRoLnZlbmthdGVzaEBhcm0uY29t PjxtYWlsdG86c3VwcmVldGgudmVua2F0ZXNoQGFybS5jb20+DQoNCg0KT24gMTAvMTQvMjAxOCAw Mjo1OCBBTSwgRXJpYyBKaW4gd3JvdGU6DQoNCkNjOiBTdXByZWV0aCBWZW5rYXRlc2ggPHN1cHJl ZXRoLnZlbmthdGVzaEBhcm0uY29tPjxtYWlsdG86c3VwcmVldGgudmVua2F0ZXNoQGFybS5jb20+ DQpDYzogSmlheGluIFd1IDxqaWF4aW4ud3VAaW50ZWwuY29tPjxtYWlsdG86amlheGluLnd1QGlu dGVsLmNvbT4NCkNvbnRyaWJ1dGVkLXVuZGVyOiBUaWFub0NvcmUgQ29udHJpYnV0aW9uIEFncmVl bWVudCAxLjENClNpZ25lZC1vZmYtYnk6IEVyaWMgSmluIDxlcmljLmppbkBpbnRlbC5jb20+PG1h aWx0bzplcmljLmppbkBpbnRlbC5jb20+DQotLS0NCiAgdWVmaS1zY3QvU2N0UGtnL0xpYnJhcnkv U2N0TGliL1ByaW50LmMgfCA2ICsrKystLQ0KICAxIGZpbGUgY2hhbmdlZCwgNCBpbnNlcnRpb25z KCspLCAyIGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvdWVmaS1zY3QvU2N0UG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