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

2018-11-25 Thread Thomas Monjalon
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

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

2018-11-23 Thread 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. Coverit

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

2018-11-23 Thread Andrew Rybchenko
On 11/23/18 1:45 PM, Thomas Monjalon wrote: Please, anyone for a review and a test? 23/11/2018 01:29, Ferruh Yigit: 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 eithe

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

2018-11-23 Thread Thomas Monjalon
Please, anyone for a review and a test? 23/11/2018 01:29, Ferruh Yigit: > 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, o