[dpdk-dev] [PATCH v2] librte_acl: fix undefined behavior

Ananyev, Konstantin konstantin.ananyev at intel.com
Thu Aug 1 10:14:11 CEST 2019


> 
> 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>

> 2.21.0



More information about the dev mailing list