Skip to content

Commit e3b3599

Browse files
committed
Add default value of stackLimit couple of places
stackLimit default value is missing at two places.Adding them.
1 parent cc5cdb5 commit e3b3599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib_json/json_reader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ OurFeatures::OurFeatures()
910910
, allowSingleQuotes_(false)
911911
, failIfExtra_(false)
912912
, allowSpecialFloats_(false)
913+
, stackLimit_(1000)
913914
{
914915
}
915916

@@ -1979,6 +1980,7 @@ void CharReaderBuilder::strictMode(Json::Value* settings)
19791980
(*settings)["allowDroppedNullPlaceholders"] = false;
19801981
(*settings)["allowNumericKeys"] = false;
19811982
(*settings)["allowSingleQuotes"] = false;
1983+
(*settings)["stackLimit"] = 1000;
19821984
(*settings)["failIfExtra"] = true;
19831985
(*settings)["rejectDupKeys"] = true;
19841986
(*settings)["allowSpecialFloats"] = false;

0 commit comments

Comments
 (0)