summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_json.result
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/r/func_json.result
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/r/func_json.result')
-rw-r--r--mysql-test/r/func_json.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result
index 39bd46b7dea..206f745a0d2 100644
--- a/mysql-test/r/func_json.result
+++ b/mysql-test/r/func_json.result
@@ -760,3 +760,9 @@ t1 CREATE TABLE `t1` (
`c2` varchar(38) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
+#
+# MDEV-16054 simple json functions flatline cpu on garbage input.
+#
+select json_array(1,uuid(),compress(5.140264e+307));
+json_array(1,uuid(),compress(5.140264e+307))
+NULL