1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11463 Server crashes in mark_array upon JSON_VALID.

The depth of nested arrays should be controlled, as it's limited.
This commit is contained in:
Alexey Botchkov
2016-12-03 12:36:10 +04:00
parent edc75c9c16
commit 7fca133028
3 changed files with 33 additions and 9 deletions

View File

@ -2,6 +2,7 @@ select json_valid('[1, 2]');
select json_valid('"string"}');
select json_valid('{"key1":1, "key2":[2,3]}');
select json_valid('[false, true, null]');
select json_valid(repeat('[', 1000));
select json_value('{"key1":123}', '$.key2');
select json_value('{"key1":123}', '$.key1');