[openssl-commits] [openssl] OpenSSL_1_0_1-stable update

Emilia Kasper emilia at openssl.org
Mon Aug 31 14:55:28 UTC 2015


The branch OpenSSL_1_0_1-stable has been updated
       via  cb5320014d18633dcb444d09948f5bdac8f48c0d (commit)
      from  9a9744646805bcf5d25af990be0533f71bf5edd5 (commit)


- Log -----------------------------------------------------------------
commit cb5320014d18633dcb444d09948f5bdac8f48c0d
Author: Emilia Kasper <emilia at openssl.org>
Date:   Mon Aug 31 13:57:44 2015 +0200

    bntest: don't dereference the |d| array for a zero BIGNUM.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (cherry picked from commit 4d04226c2ec7e7f69f6234def63631648e35e828)
    (cherry picked from commit 9c989aaa749d88b63bef5d5beeb3046eae62d836)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bn/bntest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c
index 06662c5..9f888f9 100644
--- a/crypto/bn/bntest.c
+++ b/crypto/bn/bntest.c
@@ -516,9 +516,9 @@ int test_div_word(BIO *bp)
         do {
             BN_bntest_rand(&a, 512, -1, 0);
             BN_bntest_rand(&b, BN_BITS2, -1, 0);
-            s = b.d[0];
-        } while (!s);
+        } while (BN_is_zero(&b));
 
+        s = b.d[0];
         BN_copy(&b, &a);
         r = BN_div_word(&b, s);
 


More information about the openssl-commits mailing list