numam-dpdk/drivers/bus/pci
Ferruh Yigit d3110b124a bus/pci: fix allocation of device path
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: ea9d56226e ("pci: introduce function to map uio resource by index")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-11-25 11:51:11 +01:00
..
bsd bus/pci: harmonize return value of config read 2018-10-29 00:32:14 +01:00
linux bus/pci: fix allocation of device path 2018-11-25 11:51:11 +01:00
Makefile eal: add bus pointer in device structure 2018-10-11 14:09:24 +02:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
pci_common_uio.c bus/pci: support hot-unplug handler 2018-10-15 22:16:48 +02:00
pci_common.c bus/pci: propagate probing error codes 2018-10-29 01:59:48 +01:00
pci_params.c devargs: rename enum items with singular form 2018-10-11 13:57:29 +02:00
private.h bus/pci: support hot-unplug handler 2018-10-15 22:16:48 +02:00
rte_bus_pci_version.map bus/pci: fix namespace of sysfs path function 2017-11-07 00:44:10 +01:00
rte_bus_pci.h bus/pci: harmonize return value of config read 2018-10-29 00:32:14 +01:00