From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A92FD3B5; Fri, 17 Feb 2017 17:21:58 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2017 08:21:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,172,1484035200"; d="scan'208";a="824500616" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.137]) ([10.237.220.137]) by FMSMGA003.fm.intel.com with ESMTP; 17 Feb 2017 08:21:54 -0800 To: Keith Wiles , dev@dpdk.org References: <20170217154304.50214-1-keith.wiles@intel.com> Cc: dpdk stable From: Ferruh Yigit Message-ID: <37245ce5-de84-27fb-14a7-36ad8934a8d6@intel.com> Date: Fri, 17 Feb 2017 16:21:53 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170217154304.50214-1-keith.wiles@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2017 16:21:59 -0000 On 2/17/2017 3:43 PM, Keith Wiles wrote: > Calling strncpy with a maximum size argument of 16 bytes on destination > array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the > destination string unterminated. > > Signed-off-by: Keith Wiles net/tap: fix possibly unterminated string Coverity issue: 1407499 Fixes: 6b38b2725cdb ("net/tap: fix multi-queue support") Cc: stable@dpdk.org Applied to dpdk-next-net/master, thanks. (Updates: - patch title: It is preferred to mention from problem solved instead of the tool that found it. - Added coverity tag: This helps to trace coverity issues, defined syntax is: Coverity issue: xxx Fixes: yyyy - Added Cc: tag for stable tree: In case stable tree wants get this patch, to make patch visible. )