Skip to content

Commit

Permalink
Adding iterative parse flag to prevent stack overflow issue (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
PolygonalSun committed Oct 20, 2020
1 parent 6193909 commit feefb41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GLTFSDK/Inc/GLTFSDK/RapidJsonUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Please do not include their headers and this header in the same cpp file.
#define RAPIDJSON_NAMESPACE_BEGIN namespace Microsoft { namespace glTF { namespace rapidjson {
#define RAPIDJSON_NAMESPACE_END }}}

// Adding iterative parse flag to prevent stack overflow issue
#define RAPIDJSON_PARSE_DEFAULT_FLAGS RAPIDJSON_NAMESPACE::ParseFlag::kParseIterativeFlag

// RapidJSON uses constant if expressions to support multiple platforms
#pragma warning(push)
Expand Down

0 comments on commit feefb41

Please sign in to comment.