From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 494F7CF68; Fri, 11 May 2018 12:55:14 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2018 03:55:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,388,1520924400"; d="scan'208";a="50036390" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga003.jf.intel.com with ESMTP; 11 May 2018 03:55:12 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX153.ger.corp.intel.com ([169.254.9.5]) with mapi id 14.03.0319.002; Fri, 11 May 2018 11:55:11 +0100 From: "De Lara Guarch, Pablo" To: Andy Green , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 12/18] net/sfc: solve strncpy size and NUL Thread-Index: AQHT6MoIKHe/8kDJr0GsFWr150qe76QqWsqg Date: Fri, 11 May 2018 10:55:10 +0000 Message-ID: References: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> <152600317613.53146.6276891139126316271.stgit@localhost.localdomain> In-Reply-To: <152600317613.53146.6276891139126316271.stgit@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTM2YmZhYzYtOTBmZC00NThiLWIzNmQtOWVhYWZkZTU3ZWI3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Im9zcldQOG82a2RiVEtGUUZVampyZ3p6WFhubCtxaVo3d3BpSnYzZVBIak09In0= 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 12/18] net/sfc: solve strncpy size and NUL 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:55:15 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBBbmR5IEdyZWVuDQo+IFNlbnQ6IEZyaWRh eSwgTWF5IDExLCAyMDE4IDI6NDYgQU0NCj4gVG86IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBb ZHBkay1kZXZdIFtQQVRDSCB2NCAxMi8xOF0gbmV0L3NmYzogc29sdmUgc3RybmNweSBzaXplIGFu ZCBOVUwNCj4gDQo+IFNpZ25lZC1vZmYtYnk6IEFuZHkgR3JlZW4gPGFuZHlAd2FybWNhdC5jb20+ DQo+IC0tLQ0KPiAgZHJpdmVycy9uZXQvc2ZjL3NmY19ldGhkZXYuYyB8ICAgIDIgKy0NCj4gIDEg ZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwgMSBkZWxldGlvbigtKQ0KPiANCj4gZGlmZiAt LWdpdCBhL2RyaXZlcnMvbmV0L3NmYy9zZmNfZXRoZGV2LmMgYi9kcml2ZXJzL25ldC9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