From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] crypto/scheduler: fix strncpy Date: Wed, 31 Jan 2018 19:01:20 +0100 Message-ID: <1807850.sLrRnkPxLN@xps> References: <20180126144428.13154-1-pablo.de.lara.guarch@intel.com> <20180129092202.45914-1-pablo.de.lara.guarch@intel.com> <9F7182E3F746AB4EA17801C148F3C604330AC4E9@IRSMSX101.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Zhang, Roy Fan" , "Richardson, Bruce" , "stable@dpdk.org" To: "De Lara Guarch, Pablo" Return-path: In-Reply-To: <9F7182E3F746AB4EA17801C148F3C604330AC4E9@IRSMSX101.ger.corp.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" > > The coverity issue was not completely fixed, since strncpy should not be > > called with max length. > > Instead, snprintf is used as a safer option. > > > > Coverity issue: 143431 > > Fixes: d040aca67170 ("crypto/scheduler: fix strings not null terminated") > > Cc: stable@dpdk.org > > > > Signed-off-by: Pablo de Lara > > --- > > > > v2: > > - Replaced strncpy with snprintf > > Acked-by: Fan Zhang Applied, thanks