diff options
author | Andy Polyakov <appro@openssl.org> | 2008-10-28 13:46:14 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-10-28 13:46:14 +0000 |
commit | b764f82c645639ce794f28ef92e749066dd2caa6 (patch) | |
tree | 8551af2dcf98213f5c322c622325a5d39751f691 /crypto/bn | |
parent | 436bdcff4ec96d086b9f4e80accb314e4a4514e1 (diff) | |
download | openssl-b764f82c645639ce794f28ef92e749066dd2caa6.tar.gz |
Fix crash in BN_rshift.
PR: 1663
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_shift.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_shift.c b/crypto/bn/bn_shift.c index de9312dce2..c4d301afc4 100644 --- a/crypto/bn/bn_shift.c +++ b/crypto/bn/bn_shift.c @@ -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); |