diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-02 14:53:49 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-02 16:36:22 +0200 |
commit | 02d6070430de33cf09e1db6b77a6aa43390c62a8 (patch) | |
tree | ef15988237d75fa876ef481dfc1b8dfd5b5e55da /crypto/bn/rsaz_exp.c | |
parent | Tidy up OCSP print handling. (diff) | |
download | openssl-02d6070430de33cf09e1db6b77a6aa43390c62a8.tar.xz openssl-02d6070430de33cf09e1db6b77a6aa43390c62a8.zip |
Fix test failures when using enable-ubsan
Numerous test failures were occuring when Configured with enable-ubsan
although they could all be traced back to one issue.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/bn/rsaz_exp.c')
-rw-r--r-- | crypto/bn/rsaz_exp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/rsaz_exp.c b/crypto/bn/rsaz_exp.c index 3398cce9ab..1a70f6cade 100644 --- a/crypto/bn/rsaz_exp.c +++ b/crypto/bn/rsaz_exp.c @@ -253,7 +253,7 @@ void RSAZ_1024_mod_exp_avx2(BN_ULONG result_norm[16], rsaz_1024_sqr_avx2(result, result, m, k0, 5); - wvalue = *((unsigned short *)&p_str[index / 8]); + wvalue = (p_str[(index / 8) + 1] << 8) | p_str[index / 8]; wvalue = (wvalue >> (index % 8)) & 31; index -= 5; |