Fix crash in BN_rshift.
PR: 1663
This commit is contained in:
parent
436bdcff4e
commit
b764f82c64
@ -177,7 +177,7 @@ int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
|
||||
nw=n/BN_BITS2;
|
||||
rb=n%BN_BITS2;
|
||||
lb=BN_BITS2-rb;
|
||||
if (nw > a->top || a->top == 0)
|
||||
if (nw >= a->top || a->top == 0)
|
||||
{
|
||||
BN_zero(r);
|
||||
return(1);
|
||||
|
Loading…
Reference in New Issue
Block a user