Re: [dpdk-dev] [RFC 1/5] bus/pci: fix allocation of pci device path

2018-11-22 Thread Ferruh Yigit
On 11/6/2018 9:48 PM, Stephen Hemminger 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.

Re: [dpdk-dev] [RFC 1/5] bus/pci: fix allocation of pci device path

2018-11-18 Thread Thomas Monjalon
06/11/2018 22:48, Stephen Hemminger: > 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. > > Cove

[dpdk-dev] [RFC 1/5] bus/pci: fix allocation of pci device path

2018-11-06 Thread Stephen Hemminger
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: int