From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] examples/ip_pipeline: fix buffer not null terminated Date: Tue, 17 Apr 2018 15:59:20 +0100 Message-ID: <20180417145920.GB89464@bricha3-MOBL.ger.corp.intel.com> References: <20180417131719.146374-1-jasvinder.singh@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, cristian.dumitrescu@intel.com To: Jasvinder Singh Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 612EFAAB3 for ; Tue, 17 Apr 2018 16:59:25 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180417131719.146374-1-jasvinder.singh@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Apr 17, 2018 at 02:17:19PM +0100, Jasvinder Singh wrote: > The destination string may not have a null termination if > the source string's length is equal to the sizeof(tap->name). > > Fix by replacing strncpy with strlcpy that guarantees NULL-termination. > > Coverty issue: 272603 > Fixes: 2f74ae28e23f ("examples/ip_pipeline: add tap object") > > Signed-off-by: Jasvinder Singh > --- Acked-by: Bruce Richardson