> -----Original Message----- > From: dev <[email protected]> On Behalf Of Gaetan Rivet > Sent: Wednesday, May 13, 2020 12:48 PM > To: [email protected] > Cc: [email protected] > Subject: [dpdk-dev] [PATCH v1 1/2] pci: fix allowing underflow when parsing > 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: af75078fece3 ("first public release") > Cc: [email protected] > Signed-off-by: Gaetan Rivet <[email protected]> > ---
Acked-by: Darek Stojaczyk <[email protected]>

