projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba833a
)
Fix crash in BN_rshift [from HEAD].
author
Andy Polyakov
<appro@openssl.org>
Tue, 28 Oct 2008 13:48:33 +0000
(13:48 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 28 Oct 2008 13:48:33 +0000
(13:48 +0000)
PR: 1663
crypto/bn/bn_shift.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_shift.c
b/crypto/bn/bn_shift.c
index de9312dce231f5de6c03a90baf42ee867c6b6838..c4d301afc4675b7739ede6517f3cebcde52a285a 100644
(file)
--- 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);