Commit b6a711bf authored by unknown's avatar unknown

Additional fix for #13573


strings/decimal.c:
  here we can run over the buffer - need to check on overflow
parent 768b1e50
...@@ -1986,7 +1986,11 @@ int decimal_mul(decimal_t *from1, decimal_t *from2, decimal_t *to) ...@@ -1986,7 +1986,11 @@ 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 */
......
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