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