Commit 68d0a7b2 authored by Isaac Nickaein's avatar Isaac Nickaein

Reduce depth in unit-test to avoid choking valgrind

parent eec19742
......@@ -1780,10 +1780,10 @@ TEST_CASE("regression tests")
SECTION("issue #1419 - Segmentation fault (stack overflow) due to unbounded recursion")
{
const int depth = 8000000;
const auto depth = 5000000;
std::string s(depth, '[');
s += std::string(depth, ']');
std::string s(2 * depth, '[');
std::fill(s.begin() + depth, s.end(), ']');
CHECK_NOTHROW(nlohmann::json::parse(s));
}
......
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