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