$OpenBSD: patch-cmake_jansson_config_h_cmake,v 1.1 2016/06/28 12:48:30 jasper Exp $

Security fix for CVE-2016-4425
https://github.com/akheron/jansson/issues/282

--- cmake/jansson_config.h.cmake.orig	Thu Oct  2 06:59:26 2014
+++ cmake/jansson_config.h.cmake	Tue Jun 28 14:43:32 2016
@@ -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 2048
+
 
 #endif
