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

2019-08-02 Thread Thomas Monjalon
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

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

2019-08-01 Thread 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 An

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

2019-07-31 Thread Aaron Conole
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 Signed-off-b