We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bcbc6a + 39b994c commit 35dcc20Copy full SHA for 35dcc20
src/lib_json/json_reader.cpp
@@ -144,7 +144,12 @@ bool Reader::readValue() {
144
// after calling readValue(). parse() executes one nodes_.push(), so > instead
145
// of >=.
146
if (nodes_.size() > stackLimit_g)
147
+#if JSON_USE_EXCEPTION
148
throwRuntimeError("Exceeded stackLimit in readValue().");
149
+#else
150
+ // throwRuntimeError aborts. Don't abort here.
151
+ return false;
152
+#endif
153
154
Token token;
155
readTokenSkippingComments(token);
0 commit comments