提交 0a2dcb69 编写于 作者: R Richard Levitte

bn: fix occurance of negative zero in BN_rshift1()

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 38d1b3cc
......@@ -74,6 +74,8 @@ int BN_rshift1(BIGNUM *r, const BIGNUM *a)
c = (t & 1) ? BN_TBIT : 0;
}
r->top = j;
if (!r->top)
r->neg = 0; /* don't allow negative zero */
bn_check_top(r);
return (1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册