mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
8b37e5c14f
Td4 and Te4 are arrays of u8. A u8 << int promotes the u8 to an int first then shifts. If the mathematical result of a shift (as modelled by lhs * 2^{rhs}) is not representable in an integer, behaviour is undefined. In other words, you can't shift into the sign bit of a signed integer. Fix this by casting to u32 whenever we're shifting left by 24. (For consistency, cast other shifts, too.) Caught by -fsanitize=shift Submitted by Nick Lewycky (Google) Reviewed-by: Andy Polyakov <appro@openssl.org> |
||
---|---|---|
.. | ||
asm | ||
aes_cbc.c | ||
aes_cfb.c | ||
aes_core.c | ||
aes_ecb.c | ||
aes_ige.c | ||
aes_locl.h | ||
aes_misc.c | ||
aes_ofb.c | ||
aes_wrap.c | ||
aes_x86core.c | ||
aes.h | ||
Makefile |