mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Don't call BN_rand with zero bits in bntest.c
This commit is contained in:
parent
2eb5bc5c6d
commit
587bb0e02e
3
CHANGES
3
CHANGES
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
Changes between 0.9.4 and 0.9.5 [xx XXX 2000]
|
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]
|
*) 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.
|
case was implemented. This caused BN_div_recp() to fail occasionally.
|
||||||
[Ulf Möller]
|
[Ulf Möller]
|
||||||
|
@ -506,7 +506,7 @@ int test_mul(BIO *bp)
|
|||||||
|
|
||||||
for (i=0; i<num0+num1; i++)
|
for (i=0; i<num0+num1; i++)
|
||||||
{
|
{
|
||||||
if (i < num1)
|
if (i <= num1)
|
||||||
{
|
{
|
||||||
BN_rand(&a,100,0,0);
|
BN_rand(&a,100,0,0);
|
||||||
BN_rand(&b,100,0,0);
|
BN_rand(&b,100,0,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user