From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 93D0D1BC34 for ; Fri, 11 May 2018 12:33:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2018 03:33:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,388,1520924400"; d="scan'208";a="54309886" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by fmsmga001.fm.intel.com with ESMTP; 11 May 2018 03:33:04 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX103.ger.corp.intel.com ([169.254.3.179]) with mapi id 14.03.0319.002; Fri, 11 May 2018 11:33:03 +0100 From: "De Lara Guarch, Pablo" To: Andy Green , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 07/18] net/nfp/nfpcore: off-by-one and no NUL on strncpy use Thread-Index: AQHT6MnrbWSA+rMK9UOAholnzk0zh6QqU71w Date: Fri, 11 May 2018 10:33:03 +0000 Message-ID: References: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> <152600315096.53146.4309625575083492451.stgit@localhost.localdomain> In-Reply-To: <152600315096.53146.4309625575083492451.stgit@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDA5ZDYyZDItZDZiYS00YTU4LWFkNjgtMjgwMzI5ZDE0OTk3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImF4aFlmXC94M01HcWQ4VkYxV0pTVGxhZjdZVE1rWHVSMFJJUXZ0RWJkMkhjPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 07/18] net/nfp/nfpcore: off-by-one and no NUL on strncpy use 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: , X-List-Received-Date: Fri, 11 May 2018 10:33:07 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBBbmR5IEdyZWVuDQo+IFNlbnQ6IEZyaWRh eSwgTWF5IDExLCAyMDE4IDI6NDYgQU0NCj4gVG86IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBb ZHBkay1kZXZdIFtQQVRDSCB2NCAwNy8xOF0gbmV0L25mcC9uZnBjb3JlOiBvZmYtYnktb25lIGFu ZCBubyBOVUwNCj4gb24gc3RybmNweSB1c2UNCj4gDQo+IC9ob21lL2FncmVlbi9wcm9qZWN0cy9k cGRrL2RyaXZlcnMvbmV0L25mcC9uZnBjb3JlL25mcF9yZXNvdXJjZS5jOg0KPiA3NjoyOmVycm9y OiDigJhzdHJuY3B54oCZIG91dHB1dCBtYXkgYmUgdHJ1bmNhdGVkIGNvcHlpbmcgOCBieXRlcyBm cm9tIGEgc3RyaW5nIG9mDQo+IGxlbmd0aCA4IFstV2Vycm9y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