diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-02-27 18:34:30 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-02-27 18:34:30 +0100 |
commit | 587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5 (patch) | |
tree | 697e5452b990b9e425f98e3aabb5c00d8b7cc9f9 | |
parent | Make sure to catch UnixWare 7, even if the version is 7.1.1 or (diff) | |
download | openssl-587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5.tar.xz openssl-587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5.zip |
Don't call BN_rand with zero bits in bntest.c
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | crypto/bn/bntest.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -4,6 +4,9 @@ Changes between 0.9.4 and 0.9.5 [xx XXX 2000] + *) In bntest.c don't call BN_rand with zero bits argument. + [Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>] + *) BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n] case was implemented. This caused BN_div_recp() to fail occasionally. [Ulf Möller] diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c index 2a45c3a9ca..41c22f5954 100644 --- a/crypto/bn/bntest.c +++ b/crypto/bn/bntest.c @@ -506,7 +506,7 @@ int test_mul(BIO *bp) for (i=0; i<num0+num1; i++) { - if (i < num1) + if (i <= num1) { BN_rand(&a,100,0,0); BN_rand(&b,100,0,0); |