From: Andy Polyakov Date: Tue, 28 Oct 2008 13:46:14 +0000 (+0000) Subject: Fix crash in BN_rshift. X-Git-Tag: OpenSSL_0_9_8k^2~206 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b764f82c645639ce794f28ef92e749066dd2caa6;p=oweals%2Fopenssl.git Fix crash in BN_rshift. PR: 1663 --- 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);