projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d840a
)
bn/bn_gf2m.c: appease STACK, unstable code detector.
author
Andy Polyakov
<appro@openssl.org>
Wed, 20 May 2015 07:24:36 +0000
(09:24 +0200)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 24 May 2015 19:27:32 +0000
(21:27 +0200)
RT#3852
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit
86e5d1e32b2d702a5fc777e612cd746e790098ef
)
crypto/bn/bn_gf2m.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_gf2m.c
b/crypto/bn/bn_gf2m.c
index aeee49a0156f2a2b15f8d246907dd3f67deaa8dd..1981f1602340b2b2a215bd42af84e2abcec6fc35 100644
(file)
--- a/
crypto/bn/bn_gf2m.c
+++ b/
crypto/bn/bn_gf2m.c
@@
-450,8
+450,7
@@
int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
d0 = p[k] % BN_BITS2;
d1 = BN_BITS2 - d0;
z[n] ^= (zz << d0);
- tmp_ulong = zz >> d1;
- if (d0 && tmp_ulong)
+ if (d0 && (tmp_ulong = zz >> d1))
z[n + 1] ^= tmp_ulong;
}