summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-02 19:35:50 +0200
committerFedor Indutny <fedor@indutny.com>2014-07-03 00:45:00 +0400
commit20247064b63b7937d5374368e236bcf4b184888a (patch)
tree34752661cac4ffc657dc93ef5209f0afe04ad90d /deps
parente34525356201654bfe35b4bb7edec6f5b47b6374 (diff)
downloadandroid-node-v8-20247064b63b7937d5374368e236bcf4b184888a.tar.gz
android-node-v8-20247064b63b7937d5374368e236bcf4b184888a.tar.bz2
android-node-v8-20247064b63b7937d5374368e236bcf4b184888a.zip
deps: cherry-pick eca441b2 from OpenSSL
Original commit message: bn_exp.c: fix x86_64-specific crash with one-word modulus. PR: #3397 Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'deps')
-rw-r--r--deps/openssl/openssl/crypto/bn/bn_exp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/openssl/openssl/crypto/bn/bn_exp.c b/deps/openssl/openssl/crypto/bn/bn_exp.c
index 2abf6fd678..5e7eb3373f 100644
--- a/deps/openssl/openssl/crypto/bn/bn_exp.c
+++ b/deps/openssl/openssl/crypto/bn/bn_exp.c
@@ -680,7 +680,7 @@ int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
/* Dedicated window==4 case improves 512-bit RSA sign by ~15%, but as
* 512-bit RSA is hardly relevant, we omit it to spare size... */
- if (window==5)
+ if (window==5 && top>1)
{
void bn_mul_mont_gather5(BN_ULONG *rp,const BN_ULONG *ap,
const void *table,const BN_ULONG *np,