From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3E487A0679 for ; Wed, 3 Apr 2019 17:10:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0D66C1B43D; Wed, 3 Apr 2019 17:10:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 4F5231B43A; Wed, 3 Apr 2019 17:10:44 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2019 08:10:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,304,1549958400"; d="scan'208";a="137273335" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga008.fm.intel.com with ESMTP; 03 Apr 2019 08:10:42 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.152]) by IRSMSX153.ger.corp.intel.com ([169.254.9.83]) with mapi id 14.03.0415.000; Wed, 3 Apr 2019 16:10:41 +0100 From: "Richardson, Bruce" To: "Burakov, Anatoly" CC: "Sirvys, Andrius" , "dev@dpdk.org" , "Laatz, Kevin" , "stable@dpdk.org" , "ciara.power@intel.com" Thread-Topic: [dpdk-dev] [PATCH] usertools: replace unsafe input function Thread-Index: AQHU3zwXM8cPaJT4EUqba+5dtE6gqKYqRT4AgAA/AQD///+4gIAABWUAgAAC6ACAABOpUA== Date: Wed, 3 Apr 2019 15:10:41 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B072772404@IRSMSX103.ger.corp.intel.com> References: <1553100181-32934-1-git-send-email-andrius.sirvys@intel.com> <7e3a6736-24bb-b235-0ce9-aae17ab5d4a0@intel.com> <20190403133010.GB1309@bricha3-MOBL.ger.corp.intel.com> <788abf93-a33f-3a72-9bc1-cc6725336859@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzhjMjBjODEtZjg1My00NjQzLTg2ZmItYTY4ZmU1ZDQ2NzdlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTWg1c0ZcL1B5K2RjdDJSNGJJXC9aU1JyT2JIYzJvMG5rSzJoSllLRHpXM1dKN2Zlbko1S2U1OGlvK2YwRlFDZlMwIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 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] usertools: replace unsafe input function 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" Message-ID: <20190403151041.CVyTQipB9z_6DKZjgJz8KUpiD8OFPsHXZtLJSu5XcE4@z> DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnVyYWtvdiwgQW5hdG9s eQ0KPiBTZW50OiBXZWRuZXNkYXksIEFwcmlsIDMsIDIwMTkgMzo1OSBQTQ0KPiBUbzogUmljaGFy ZHNvbiwgQnJ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