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:
@ -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
|
||||
|
Reference in New Issue
Block a user