mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-27955 main.func_json_notembedded test fails on out-of-memory
Uses 500M+ of memory by repeating an 8 byte sequence 62.5M times. Reduce the number of repeats on string reduced by 100 times. Tested by applying against the reverted MDEV-24909 code. 1000 times reduction was too much, but 100 still managed to trigger the bug.
This commit is contained in:
@ -9,8 +9,8 @@ connect u,localhost,root;
|
||||
--echo #
|
||||
set group_concat_max_len= 4294967295;
|
||||
|
||||
set @obj=concat_ws('','{', repeat('"a":"b",', 125000000/2), '"c":"d"}');
|
||||
set @arr=concat_ws('','[', repeat('1234567,', 125000000/2), '2345678]');
|
||||
set @obj=concat_ws('','{', repeat('"a":"b",', 1250000/2), '"c":"d"}');
|
||||
set @arr=concat_ws('','[', repeat('1234567,', 1250000/2), '2345678]');
|
||||
select length(@obj), length(@arr);
|
||||
|
||||
set max_statement_time=0.0001;
|
||||
|
Reference in New Issue
Block a user