Skip to content

Commit feefb41

Browse files
authored
Adding iterative parse flag to prevent stack overflow issue (#65)
1 parent 6193909 commit feefb41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GLTFSDK/Inc/GLTFSDK/RapidJsonUtils.h

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Please do not include their headers and this header in the same cpp file.
1717
#define RAPIDJSON_NAMESPACE_BEGIN namespace Microsoft { namespace glTF { namespace rapidjson {
1818
#define RAPIDJSON_NAMESPACE_END }}}
1919

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

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

0 commit comments

Comments
 (0)