Commit 9e36c91b authored by Tom Lane's avatar Tom Lane

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
parent 272ede71
...@@ -233,10 +233,10 @@ DETAIL: Expected string, but found "3". ...@@ -233,10 +233,10 @@ DETAIL: Expected string, but found "3".
CONTEXT: JSON data, line 1: {"abc":1,3... CONTEXT: JSON data, line 1: {"abc":1,3...
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::json; SELECT repeat('[', 10000)::json;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
SELECT repeat('{"a":', 1000)::json; SELECT repeat('{"a":', 10000)::json;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
RESET max_stack_depth; RESET max_stack_depth;
......
...@@ -233,10 +233,10 @@ DETAIL: Expected string, but found "3". ...@@ -233,10 +233,10 @@ DETAIL: Expected string, but found "3".
CONTEXT: JSON data, line 1: {"abc":1,3... CONTEXT: JSON data, line 1: {"abc":1,3...
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::json; SELECT repeat('[', 10000)::json;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
SELECT repeat('{"a":', 1000)::json; SELECT repeat('{"a":', 10000)::json;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
RESET max_stack_depth; RESET max_stack_depth;
......
...@@ -241,10 +241,10 @@ DETAIL: Expected string, but found "3". ...@@ -241,10 +241,10 @@ DETAIL: Expected string, but found "3".
CONTEXT: JSON data, line 1: {"abc":1,3... CONTEXT: JSON data, line 1: {"abc":1,3...
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::jsonb; SELECT repeat('[', 10000)::jsonb;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
SELECT repeat('{"a":', 1000)::jsonb; SELECT repeat('{"a":', 10000)::jsonb;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
RESET max_stack_depth; RESET max_stack_depth;
......
...@@ -241,10 +241,10 @@ DETAIL: Expected string, but found "3". ...@@ -241,10 +241,10 @@ DETAIL: Expected string, but found "3".
CONTEXT: JSON data, line 1: {"abc":1,3... CONTEXT: JSON data, line 1: {"abc":1,3...
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::jsonb; SELECT repeat('[', 10000)::jsonb;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
SELECT repeat('{"a":', 1000)::jsonb; SELECT repeat('{"a":', 10000)::jsonb;
ERROR: stack depth limit exceeded ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate. HINT: Increase the configuration parameter "max_stack_depth" (currently 100kB), after ensuring the platform's stack depth limit is adequate.
RESET max_stack_depth; RESET max_stack_depth;
......
...@@ -47,8 +47,8 @@ SELECT '{"abc":1,3}'::json; -- ERROR, no value ...@@ -47,8 +47,8 @@ SELECT '{"abc":1,3}'::json; -- ERROR, no value
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::json; SELECT repeat('[', 10000)::json;
SELECT repeat('{"a":', 1000)::json; SELECT repeat('{"a":', 10000)::json;
RESET max_stack_depth; RESET max_stack_depth;
-- Miscellaneous stuff. -- Miscellaneous stuff.
......
...@@ -50,8 +50,8 @@ SELECT '{"abc":1,3}'::jsonb; -- ERROR, no value ...@@ -50,8 +50,8 @@ SELECT '{"abc":1,3}'::jsonb; -- ERROR, no value
-- Recursion. -- Recursion.
SET max_stack_depth = '100kB'; SET max_stack_depth = '100kB';
SELECT repeat('[', 1000)::jsonb; SELECT repeat('[', 10000)::jsonb;
SELECT repeat('{"a":', 1000)::jsonb; SELECT repeat('{"a":', 10000)::jsonb;
RESET max_stack_depth; RESET max_stack_depth;
-- Miscellaneous stuff. -- Miscellaneous stuff.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment