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:
f352de9
)
Circumvent bug in SC5 without patch #107357-01.
author
Ulf Möller
<ulf@openssl.org>
Wed, 9 Jun 1999 21:13:27 +0000
(21:13 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Wed, 9 Jun 1999 21:13:27 +0000
(21:13 +0000)
Submitted by: Andy Polyakov <appro@fy.chalmers.se>
crypto/bn/bn_div.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_div.c
b/crypto/bn/bn_div.c
index baff07040a3e9fd88c891786b71bb4cf8a7f27fe..defcf90c8223d282b36306aa3737dc3b22ca7460 100644
(file)
--- a/
crypto/bn/bn_div.c
+++ b/
crypto/bn/bn_div.c
@@
-216,10
+216,10
@@
int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
t1=((BN_ULLONG)n0<<BN_BITS2)|n1;
for (;;)
{
- t2=(BN_ULLONG)d1*q;
rem=t1-(BN_ULLONG)q*d0;
- if ((rem>>BN_BITS2) ||
- (t2 <= ((BN_ULLONG)(rem<<BN_BITS2)+wnump[-2])))
+ t2=(BN_ULLONG)d1*q;
+ if ((rem>>BN_BITS2) ||
+ (t2 <= ((rem<<BN_BITS2)|wnump[-2])))
break;
q--;
}