From 6f443fb5d952bef139eb8fadfc7556a3108cd17d Mon Sep 17 00:00:00 2001 From: jiadexiang Date: Fri, 12 Aug 2022 11:34:18 +0800 Subject: [PATCH] Description: add CJSON_NESTING_LIMIT as 128 for stack overflow issue IssueNo:I5IBWV Feature or Bugfix: Feature Binary Source:No Signed-off-by: jiadexiang --- BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 4280f84..4d3bdb9 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,6 +17,7 @@ if (defined(ohos_lite)) { config("cjson_config") { include_dirs = [ "." ] ldflags = [ "-lm" ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } cjson_sources = [ "cJSON.c", @@ -46,6 +47,7 @@ if (defined(ohos_lite)) { import("//build/ohos.gni") config("cJSON_config") { include_dirs = [ "." ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } ohos_static_library("cjson_static") { sources = [ "cJSON.c" ] -- Gitee