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

MDEV-11464 Server crashes in mark_object upon JSON_VALID.

Depth of nested objects should be controlled.
This commit is contained in:
Alexey Botchkov
2016-12-03 12:41:19 +04:00
parent 7fca133028
commit f105014e9b
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -3,6 +3,7 @@ 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_valid(repeat('{"a":', 1000));
select json_value('{"key1":123}', '$.key2');
select json_value('{"key1":123}', '$.key1');