diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-10-14 10:44:27 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-10-14 10:44:27 +0200 |
commit | 5dc553cd28853b6bce70644a52d835b595fde12a (patch) | |
tree | 405e896fc90733d1183cf4cb7f2fcc22e53a7307 /mysql-test/t | |
parent | a2cbf8358bf698e5577cad32d870c46f7590cd92 (diff) | |
parent | a6145f4b62bd264ad32d2dade98eda0cc6de0dba (diff) | |
download | mariadb-git-5dc553cd28853b6bce70644a52d835b595fde12a.tar.gz |
merge 5.0-security => 5.1 security
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/type_newdecimal.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/type_newdecimal.test b/mysql-test/t/type_newdecimal.test index 567d6c0b6a1..475be355874 100644 --- a/mysql-test/t/type_newdecimal.test +++ b/mysql-test/t/type_newdecimal.test @@ -1245,6 +1245,27 @@ show create table t1; select * from t1; DROP TABLE t1; +--echo # +--echo # Bug#12563865 +--echo # ROUNDED,TMP_BUF,DECIMAL_VALUE STACK CORRUPTION IN ALL VERSIONS >=5.0 +--echo # + +let $nine_81= +999999999999999999999999999999999999999999999999999999999999999999999999999999999; + +eval SELECT substring(('M') FROM ($nine_81)) AS foo; +eval SELECT min($nine_81) AS foo; +eval SELECT multipolygonfromtext(('4294967294.1'),($nine_81)) AS foo; +eval SELECT convert(($nine_81), decimal(30,30)) AS foo; +eval SELECT bit_xor($nine_81) AS foo; +eval SELECT -($nine_81) AS foo; +eval SELECT date_sub(($nine_81), + interval ((SELECT date_add((0x77500000), + interval ('Oml') second))) + day_minute) +AS foo; +eval SELECT truncate($nine_81, 28) AS foo; + --echo End of 5.0 tests # |