mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-11464 Server crashes in mark_object upon JSON_VALID.
Depth of nested objects should be controlled.
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user