Commit 4eea8426 authored by holyfoot@deer.(none)'s avatar holyfoot@deer.(none)

Additional fix for #13573

parent 6b5c422f
...@@ -1986,8 +1986,12 @@ int decimal_mul(decimal_t *from1, decimal_t *from2, decimal_t *to) ...@@ -1986,8 +1986,12 @@ int decimal_mul(decimal_t *from1, decimal_t *from2, decimal_t *to)
carry+=hi; carry+=hi;
} }
for (; carry; buf0--) for (; carry; buf0--)
{
if (buf0 < to->buf)
return E_DEC_OVERFLOW;
ADD(*buf0, *buf0, 0, carry); ADD(*buf0, *buf0, 0, carry);
} }
}
/* Now we have to check for -0.000 case */ /* Now we have to check for -0.000 case */
if (to->sign) if (to->sign)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment