[openssl-commits] [openssl] master update
paul.dale at oracle.com
paul.dale at oracle.com
Tue Jul 31 04:50:29 UTC 2018
The branch master has been updated
via 3d3cbce550ff5d6172cf28dbbf80bda93f6577a9 (commit)
from 35c9408108f3608eb572acd7f64a93cf4f43f4f6 (commit)
- Log -----------------------------------------------------------------
commit 3d3cbce550ff5d6172cf28dbbf80bda93f6577a9
Author: Pauli <paul.dale at oracle.com>
Date: Tue Jul 31 13:11:00 2018 +1000
Check return from BN_sub
Reviewed-by: Tim Hudson <tjh at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6823)
-----------------------------------------------------------------------
Summary of changes:
crypto/rsa/rsa_ossl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crypto/rsa/rsa_ossl.c b/crypto/rsa/rsa_ossl.c
index feb1ab4..c441905 100644
--- a/crypto/rsa/rsa_ossl.c
+++ b/crypto/rsa/rsa_ossl.c
@@ -339,7 +339,8 @@ static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
goto err;
if (padding == RSA_X931_PADDING) {
- BN_sub(f, rsa->n, ret);
+ if (!BN_sub(f, rsa->n, ret))
+ goto err;
if (BN_cmp(ret, f) > 0)
res = f;
else
More information about the openssl-commits
mailing list