From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] bus/pci: correct the earlier strlcpy conversion Date: Tue, 15 May 2018 15:19:58 +0200 Message-ID: <1662669.VYcqTo5zqW@xps> References: <2DBBFF226F7CF64BAFCA79B681719D953A44992E@SHSMSX101.ccr.corp.intel.com> <152636946035.95095.1840276672620244597.stgit@localhost.localdomain> <369bf5db-ad87-73cb-3470-901fe243c4a2@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Andy Green , lei.a.yao@intel.com, jerin.jacob@cavium.com To: Andrew Rybchenko Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 4DC491B6D4 for ; Tue, 15 May 2018 15:20:00 +0200 (CEST) In-Reply-To: <369bf5db-ad87-73cb-3470-901fe243c4a2@solarflare.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" 15/05/2018 12:51, Andrew Rybchenko: > On 05/15/2018 10:31 AM, Andy Green wrote: > > Fixes: fe5f777b5383 ("bus/pci: replace strncpy by strlcpy") > > Signed-off-by: Andy Green > > Reviewed-by: Andrew Rybchenko > > Suggest to reword it as: > > bus/pci: fix invalid size of driver name buffer > > Variable dri_name is a pointer and it is incorrect to use its > size as the buffer size. Caller knows the buffer size and > it is safer to pass it explicitly. Applied, thanks