提交 8083e1bd 编写于 作者: R Richard Levitte

There's a slight possibility that a is 0 in BN_sub_word(), and might

therefore have unallocated parts.  Therefore, a check for the 0 case
is needed, resulting with the same thing as when a is negative.
上级 8b4e27e2
......@@ -140,7 +140,7 @@ int BN_sub_word(BIGNUM *a, BN_ULONG w)
{
int i;
if (a->neg)
if (BN_is_zero(a) || a->neg)
{
a->neg=0;
i=BN_add_word(a,w);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册