mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 14:59:00 +08:00
Reduce depth in unit-test to avoid choking valgrind
This commit is contained in:
parent
eec1974218
commit
68d0a7b246
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user