Skip to content

Commit 7e21147

Browse files
committed
Adjusting the OS X json nesting level.
1 parent 13c6f16 commit 7e21147

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Release/src/json/json_parsing.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,11 @@ class JSON_Parser
196196
size_t m_currentColumn;
197197
size_t m_currentParsingDepth;
198198

199-
// On APPLE debug overflow happens around 80.
200199
// The DEBUG macro is defined in XCode but we don't in our CMakeList
201200
// so for now we will keep the same on debug and release. In the future
202201
// this can be increase on release if necessary.
203202
#if defined(__APPLE__)
204-
static const size_t maxParsingDepth = 64;
203+
static const size_t maxParsingDepth = 32;
205204
#else
206205
static const size_t maxParsingDepth = 128;
207206
#endif

0 commit comments

Comments
 (0)