summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_json.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-07-31 16:33:05 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-07-31 16:33:05 +0400
commitf4eac2deeb046a68e4a26ed1a08f8df51bbf817b (patch)
tree4065a6061450bc3c22c96c556bc87fb91aa99809 /mysql-test/t/func_json.test
parentfd378fc613851a12be346329d32e1666f10610d7 (diff)
downloadmariadb-git-f4eac2deeb046a68e4a26ed1a08f8df51bbf817b.tar.gz
MDEV-16054 simple json functions flatline cpu on garbage input.
Incorrect char sentence should be handled properly.
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r--mysql-test/t/func_json.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test
index 37b18763e91..c2cc00dd6e2 100644
--- a/mysql-test/t/func_json.test
+++ b/mysql-test/t/func_json.test
@@ -422,3 +422,10 @@ CREATE TABLE t1 AS SELECT
JSON_QUOTE(_utf8'foo') AS c2;
SHOW CREATE TABLE t1;
DROP TABLE t1;
+
+--echo #
+--echo # MDEV-16054 simple json functions flatline cpu on garbage input.
+--echo #
+
+select json_array(1,uuid(),compress(5.140264e+307));
+