1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

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