From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] bus/pci: fix allocation of PCI device path Date: Sun, 25 Nov 2018 11:53:28 +0100 Message-ID: <8388084.hrQdYZYyag@xps> References: <20181106214901.1392-2-stephen@networkplumber.org> <20181123002945.36697-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Maxime Coquelin , stable@dpdk.org, Stephen Hemminger To: Ferruh Yigit Return-path: In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 23/11/2018 12:01, Maxime Coquelin: > On 11/23/18 1:29 AM, Ferruh Yigit wrote: > > The pci_resource_by_index called strlen() on uninitialized > > memory which would lead to the wrong size of memory allocated > > for the path portion of the resource map. This would either cause > > excessively large allocation, or worse memory corruption. > > > > Coverity Issue: 300868 > > Fixes: ea9d56226e72 ("pci: introduce function to map uio resource by index") > > Cc: stable@dpdk.org > > > > Signed-off-by: Stephen Hemminger > > Signed-off-by: Ferruh Yigit > > Reviewed-by: Maxime Coquelin Applied, thanks