BUG: AddressSanitizer reports a buffer-overflow on rte_hash_lookup

Stephen Hemminger stephen at networkplumber.org
Sun Feb 5 22:08:44 CET 2023


On Sun, 5 Feb 2023 22:14:28 +0200
Isaac Boukris <iboukris at gmail.com> wrote:

> >
> > This code is using the common optimization of doing a full 32 bit access
> > and masking the result. This will read past the end of the passed input
> > but ignore the extra bytes. It won't be a problem unless the application
> > goes out of its way to put a hash key value at the end of a mapped
> > region.  
> 
> Ack, fwiw it still makes it trickier to use AddressSanitizer in user app.


Probably can be fixed with some annotations.


More information about the dev mailing list