We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8992c49 + 30e7528 commit 06e236bCopy full SHA for 06e236b
1 file changed
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