Please sign in to comment.
acl: fix undefined behavior of bit shifts
[ upstream commit 5924381221b022b589bef88bacea8a59a7bf6c8b ] 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: dc276b5 ("acl: new library") Signed-off-by: Aaron Conole <firstname.lastname@example.org> Acked-by: Konstantin Ananyev <email@example.com>
- Loading branch information...
Showing with 5 additions and 5 deletions.