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