[dpdk-dev] [PATCH v2] librte_acl: fix undefined behavior
Thomas Monjalon
thomas at monjalon.net
Fri Aug 2 22:02:59 CEST 2019
01/08/2019 10:14, Ananyev, Konstantin:
> >
> > Left-shift of an integer constant is represented as 'int' type, but a left
> > shift of 1 by 31 bits in 'int' is undefined. Use the U suffix to force
> > a representation as unsigned.
> >
> > Caught while running with ubsan under gcc.
> >
> > Fixes: dc276b5780c2 ("acl: new library")
> > Cc: Konstantin Ananyev <konstantin.ananyev at intel.com>
> > Signed-off-by: Aaron Conole <aconole at redhat.com>
>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Applied, thanks
More information about the dev
mailing list