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

2019-07-31 Thread Aaron Conole
"Ananyev, Konstantin" writes: > Hi Aaron, > >> >> 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] librte_acl: fix undefined behavior

2019-07-31 Thread Ananyev, Konstantin
Hi Aaron, > > 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: Ko

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

2019-07-30 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