提交 24bec03b 编写于 作者: B Bodo Möller

This probably fixes a BN_rshift bug.

上级 c3b1424c
......@@ -162,7 +162,7 @@ int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
nw=n/BN_BITS2;
rb=n%BN_BITS2;
lb=BN_BITS2-rb;
if (nw > a->top)
if (nw > a->top || a->top == 0)
{
BN_zero(r);
return(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册