[dpdk-stable] [dpdk-dev] [PATCH v1 1/2] pci: fix allowing underflow when parsing	PCI id
    Stojaczyk, Dariusz 
    dariusz.stojaczyk at intel.com
       
    Thu May 14 10:52:08 CEST 2020
    
    
  
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Gaetan Rivet
> Sent: Wednesday, May 13, 2020 12:48 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org
> 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: stable at dpdk.org
> Signed-off-by: Gaetan Rivet <grive at u256.net>
> ---
Acked-by: Darek Stojaczyk <dariusz.stojaczyk at intel.com>
    
    
More information about the stable
mailing list