mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
RapidJSON: use iterative parsing instead
Use iterative parsing to protect against stack overflows in rare cases
This commit is contained in:
parent
5e10fde155
commit
c72cf89465
@ -25,8 +25,8 @@ macro( apply_project_settings )
|
||||
set( OPTION_LTCG_MODE "OFF" CACHE STRING "Enables link-time code generation (significantly increases compile times)" )
|
||||
set_property( CACHE OPTION_LTCG_MODE PROPERTY STRINGS
|
||||
"OFF"
|
||||
"ON"
|
||||
"ALL"
|
||||
"ON" # Only on projects that specified LTCG
|
||||
"ALL" # All projects, whether or not LTCG was specified
|
||||
)
|
||||
|
||||
option( OPTION_CERTAIN "This build is certain; debug statements (such as DevMsg(...)) will NOT be compiled" OFF )
|
||||
@ -44,6 +44,12 @@ macro( apply_project_settings )
|
||||
# SSE3 and higher, and the next level of optimizations in RapidJSON is SSE4.2.
|
||||
"RAPIDJSON_SSE2"
|
||||
|
||||
# Use iterative parsing to protect against stack overflows in rare cases; see:
|
||||
# https://rapidjson.org/md_doc_features.html
|
||||
# https://github.com/Tencent/rapidjson/issues/1227
|
||||
# https://github.com/Tencent/rapidjson/issues/2260
|
||||
"RAPIDJSON_PARSE_DEFAULT_FLAGS=kParseIterativeFlag"
|
||||
|
||||
# Target is 64bits only.
|
||||
"PLATFORM_64BITS"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user