numam-dpdk/lib/librte_pci
Gaetan Rivet 21a61fae51 pci: reject negative values in PCI id
The function strtoul will not return ERANGE if the input is negative, as
one might expect.

   0000:-FFFFFFFFFFFFFFFB:00.0

is not a better way to write 0000:05:00.0.
To simplify checking for '-', forbid using spaces before the field value.

   0000: 00:   2c.0

Should not be accepted.

Fixes: af75078fec ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Gaetan Rivet <grive@u256.net>
Acked-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2020-05-19 11:18:38 +02:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_pci_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
rte_pci.c pci: reject negative values in PCI id 2020-05-19 11:18:38 +02:00
rte_pci.h pci: fix build on FreeBSD 2020-03-17 10:10:15 +01:00