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

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

--- src/jansson_config.h.in.orig	Thu Oct  2 06:59:26 2014
+++ src/jansson_config.h.in	Tue Jun 28 14:43:32 2016
@@ -36,4 +36,8 @@
    otherwise to 0. */
 #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
