From 672561d408739b723f90d18326dede760c8ea3b3 Mon Sep 17 00:00:00 2001 From: Dmitry Verenitsin Date: Tue, 5 May 2026 22:00:27 +0500 Subject: [PATCH] Cap cJSON parser nesting depth to 64. Lower `CJSON_NESTING_LIMIT` from upstream default 1000 to 64. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0facfe4..ab60a692 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,6 +471,7 @@ target_compile_definitions(ks2 PRIVATE -DVERSION="${PROJECT_VERSION}" -D_GNU_SOURCE=1 -DCJSON_HIDE_SYMBOLS=1 + -DCJSON_NESTING_LIMIT=64 ) # Setup our public facing definitions