未验证 提交 8bd6922b 编写于 作者: O openharmony_ci 提交者: Gitee

!574 【3.0分支合入】控制解析层数,防止cJSON库递归解析爆栈风险

Merge pull request !574 from panchengzhong/OpenHarmony-3.0-LTS
......@@ -19,6 +19,13 @@ import("//build/lite/ndk/ndk.gni")
config("cjson_config") {
include_dirs = [ "//third_party/cJSON" ]
ldflags = [ "-lm" ]
defines = [ "CJSON_NESTING_LIMIT=(128)" ]
if (board_toolchain_type == "iccarm") {
cflags = [
"--diag_suppress",
"Pa084",
]
}
}
cjson_sources = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册