提交 adc7fe12 编写于 作者: U Ulf Möller

Circumvent bug in SC5 without patch #107357-01.

Submitted by: Andy Polyakov <appro@fy.chalmers.se>
上级 f352de9f
...@@ -216,10 +216,10 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, ...@@ -216,10 +216,10 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
t1=((BN_ULLONG)n0<<BN_BITS2)|n1; t1=((BN_ULLONG)n0<<BN_BITS2)|n1;
for (;;) for (;;)
{ {
t2=(BN_ULLONG)d1*q;
rem=t1-(BN_ULLONG)q*d0; rem=t1-(BN_ULLONG)q*d0;
if ((rem>>BN_BITS2) || t2=(BN_ULLONG)d1*q;
(t2 <= ((BN_ULLONG)(rem<<BN_BITS2)+wnump[-2]))) if ((rem>>BN_BITS2) ||
(t2 <= ((rem<<BN_BITS2)|wnump[-2])))
break; break;
q--; q--;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册