[dpdk-dev] [PATCH] bus/pci: fix allocation of PCI device path

Thomas Monjalon thomas at monjalon.net
Sun Nov 25 11:53:28 CET 2018


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 at dpdk.org
> > 
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> > Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> 
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Applied, thanks




More information about the dev mailing list