mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix insufficiently-portable regression test case.
Some of the buildfarm members are evidently miserly enough of stack space to pass the originally-committed form of this test. Increase the requirement 10X to hopefully ensure that it fails as-expected everywhere. Security: CVE-2015-5289
This commit is contained in:
@ -47,8 +47,8 @@ SELECT '{"abc":1,3}'::json; -- ERROR, no value
|
||||
|
||||
-- Recursion.
|
||||
SET max_stack_depth = '100kB';
|
||||
SELECT repeat('[', 1000)::json;
|
||||
SELECT repeat('{"a":', 1000)::json;
|
||||
SELECT repeat('[', 10000)::json;
|
||||
SELECT repeat('{"a":', 10000)::json;
|
||||
RESET max_stack_depth;
|
||||
|
||||
-- Miscellaneous stuff.
|
||||
|
Reference in New Issue
Block a user