diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2010-10-08 11:52:09 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2010-10-08 11:52:09 +0200 |
commit | c8d7a31f35bc988362ec07c2e2520a0dc511eebe (patch) | |
tree | e07c26ac622c2655764f06411b76001761d4b9a0 /mysql-test/r/func_math.result | |
parent | 8284a3786d92158fcd5cc4fe5a305a87816562b5 (diff) | |
download | mariadb-git-c8d7a31f35bc988362ec07c2e2520a0dc511eebe.tar.gz |
Bug#57209 valgrind + Assertion failed: dst > buf
Buffer overrun when trying to format DBL_MAX
mysql-test/r/func_math.result:
Add test case for Bug#57209
mysql-test/t/func_math.test:
Add test case for Bug#57209
sql/item_strfunc.cc:
Allocate a larger buffer for the result.
Diffstat (limited to 'mysql-test/r/func_math.result')
-rw-r--r-- | mysql-test/r/func_math.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result index 307f1714132..bfb3af0afff 100644 --- a/mysql-test/r/func_math.result +++ b/mysql-test/r/func_math.result @@ -600,3 +600,10 @@ NULL SELECT -9223372036854775808 MOD -1; -9223372036854775808 MOD -1 0 +# +# Bug #57209 valgrind + Assertion failed: dst > buf +# +SELECT floor(log10(format(concat_ws(5445796E25, 5306463, 30837), -358821))) +as foo; +foo +2 |