From e62bce8761f340c7f129d8503398798d841aaabb Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 2 May 2016 14:08:49 +0200 Subject: [PATCH] Amend the fix for issue #282 The previous fix did not properly update cmake and Android builds. --- android/jansson_config.h | 4 ++++ cmake/jansson_config.h.cmake | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/android/jansson_config.h b/android/jansson_config.h index 0a313a0..582048d 100644 --- a/android/jansson_config.h +++ b/android/jansson_config.h @@ -36,4 +36,8 @@ otherwise to 0. */ #define JSON_HAVE_LOCALECONV 0 +/* Maximum recursion depth for parsing JSON input. + This limits the depth of e.g. array-within-array constructions. */ +#define JSON_PARSER_MAX_DEPTH 16384 + #endif diff --git a/cmake/jansson_config.h.cmake b/cmake/jansson_config.h.cmake index 43e36c5..0754631 100644 --- a/cmake/jansson_config.h.cmake +++ b/cmake/jansson_config.h.cmake @@ -60,5 +60,9 @@ #define JSON_HAVE_LOCALECONV @JSON_HAVE_LOCALECONV@ +/* Maximum recursion depth for parsing JSON input. + This limits the depth of e.g. array-within-array constructions. */ +#define JSON_PARSER_MAX_DEPTH 16384 + #endif