From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 082EDA057C; Thu, 26 Mar 2020 11:01:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C19C81C029; Thu, 26 Mar 2020 11:01:33 +0100 (CET) Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id B9C4BF12; Thu, 26 Mar 2020 11:01:32 +0100 (CET) Received: from DGGEMM401-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 12FC714ED89C81A98DB7; Thu, 26 Mar 2020 18:01:31 +0800 (CST) Received: from DGGEMM423-HUB.china.huawei.com (10.1.198.40) by DGGEMM401-HUB.china.huawei.com (10.3.20.209) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 26 Mar 2020 18:01:30 +0800 Received: from DGGEMM513-MBX.china.huawei.com ([169.254.1.52]) by dggemm423-hub.china.huawei.com ([10.1.198.40]) with mapi id 14.03.0487.000; Thu, 26 Mar 2020 18:01:23 +0800 From: wangyunjian To: Olivier Matz CC: "dev@dpdk.org" , "Lilijun (Jerry)" , xudingke , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] kvargs: fix a heap-buffer-overflow when detect list Thread-Index: AQHV/ag273qKq7zkokamfW5o4EbuLKhZBE4AgAGo0vA= Date: Thu, 26 Mar 2020 10:01:23 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CF31E6C@dggemm513-mbx.china.huawei.com> References: <1584592680-14000-1-git-send-email-wangyunjian@huawei.com> <20200325163142.GE17125@platinum> In-Reply-To: <20200325163142.GE17125@platinum> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.251.152] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: [dpdk-dev] =?gb2312?b?tPC4tDogIFtQQVRDSF0ga3ZhcmdzOiBmaXggYSBo?= =?gb2312?b?ZWFwLWJ1ZmZlci1vdmVyZmxvdyB3aGVuIGRldGVjdCBsaXN0?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS3Tyrz+1K28/i0tLS0tDQo+ILeivP7IyzogT2xpdmllciBNYXR6IFttYWlsdG86 b2xpdmllci5tYXR6QDZ3aW5kLmNvbV0NCj4gt6LLzcqxvOQ6IDIwMjDE6jPUwjI2yNUgMDozMg0K PiDK1bz+yMs6IHdhbmd5dW5qaWFuIDx3YW5neXVuamlhbkBodWF3ZWkuY29tPg0KPiCzrcvNOiBk ZXZAZHBkay5vcmc7IExpbGlqdW4gKEplcnJ5KSA8amVycnkubGlsaWp1bkBodWF3ZWkuY29tPjsg eHVkaW5na2UNCj4gPHh1ZGluZ2tlQGh1YXdlaS5jb20+OyBzdGFibGVAZHBkay5vcmcNCj4g1vfM 4jogUmU6IFtkcGRrLWRldl0gW1BBVENIXSBrdmFyZ3M6IGZpeCBhIGhlYXAtYnVmZmVyLW92ZXJm bG93IHdoZW4gZGV0ZWN0DQo+IGxpc3QNCj4gDQo+IEhpLA0KPiANCj4gT24gVGh1LCBNYXIgMTks IDIwMjAgYXQgMTI6Mzg6MDBQTSArMDgwMCwgd2FuZ3l1bmppYW4gd3JvdGU6DQo+ID4gRnJvbTog WXVuamlhbiBXYW5nIDx3YW5neXVuamlhbkBodWF3ZWkuY29tPg0KPiA+DQo+ID4gV2hlbiBhbiBp bnB1dCBwYXJhbXMndmFsdWUgaXMgJ1snLCBsZWFkaW5nIHRvIHRoZSAnc3RyJyBvdmVyIHJlYWQg b3INCj4gPiBoZWFwLWJ1ZmZlci1vdmVyZmxvdy4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