diff options
author | unknown <gshchepa/uchum@gleb.loc> | 2007-10-08 03:48:59 +0500 |
---|---|---|
committer | unknown <gshchepa/uchum@gleb.loc> | 2007-10-08 03:48:59 +0500 |
commit | 91dc1bb9059d47bd770b5392265d3b1c0c2bc3f6 (patch) | |
tree | 9ca852e262b3c8f4fa4b9cd92f183fa5aa598ce3 /libmysql/libmysql.c | |
parent | baeb40c983605da8f64aad927eae6e6f2db9bcc1 (diff) | |
download | mariadb-git-91dc1bb9059d47bd770b5392265d3b1c0c2bc3f6.tar.gz |
Fixed bug #31019: the MOD() function and the % operator crash the server
when a divisor is less than 1 and its fractional part is very long.
For example:
1 % .123456789123456789123456789123456789123456789123456789123456789123456789123456789;
Stack buffer overflow has been fixed in the do_div_mod function.
strings/decimal.c:
Fixed bug #31019.
Stack buffer overflow has been fixed in the do_div_mod function:
a value of the upper bound of the buffer was increased where
a decrement is required.
mysql-test/t/type_decimal.test:
Added test case for bug #31019.
mysql-test/r/type_decimal.result:
Added test case for bug #31019.
Diffstat (limited to 'libmysql/libmysql.c')
0 files changed, 0 insertions, 0 deletions