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:
48dd11a
)
Fix another possible crash in rsa_ossl_mod_exp.
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Tue, 13 Jun 2017 20:08:03 +0000
(22:08 +0200)
committer
Rich Salz
<rsalz@openssl.org>
Wed, 14 Jun 2017 13:50:35 +0000
(09:50 -0400)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3675)
(cherry picked from commit
5625567f9c7daaa2e2689647e10e4c5d7370718f
)
crypto/rsa/rsa_ossl.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_ossl.c
b/crypto/rsa/rsa_ossl.c
index 793e2f9c87209e810d5f22e2ad6d08fb75ccc13c..62a88959fae40c266b252beadd5818b472dce0dc 100644
(file)
--- a/
crypto/rsa/rsa_ossl.c
+++ b/
crypto/rsa/rsa_ossl.c
@@
-603,6
+603,8
@@
static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
r1 = BN_CTX_get(ctx);
m1 = BN_CTX_get(ctx);
vrfy = BN_CTX_get(ctx);
+ if (vrfy == NULL)
+ goto err;
{
BIGNUM *p = BN_new(), *q = BN_new();