summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-02-27 18:34:30 +0100
committerDr. Stephen Henson <steve@openssl.org>2000-02-27 18:34:30 +0100
commit587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5 (patch)
tree697e5452b990b9e425f98e3aabb5c00d8b7cc9f9
parentMake sure to catch UnixWare 7, even if the version is 7.1.1 or (diff)
downloadopenssl-587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5.tar.xz
openssl-587bb0e02ef5ab7cd65e4adb948397f53ca5c4b5.zip
Don't call BN_rand with zero bits in bntest.c
-rw-r--r--CHANGES3
-rw-r--r--crypto/bn/bntest.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index c7c65ec24c..7bdbecf09c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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);