From 076c7bae42ed8ae4206be5147f7b47d5dc0b8be0 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 d8804e5..8bc7ee0 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -15,6 +15,7 @@ if (defined(ohos_lite)) { config("cjson_config") { include_dirs = [ "." ] ldflags = [ "-lm" ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } cjson_sources = [ "cJSON.c", @@ -41,6 +42,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