From f28720f699ab35643edec2a42a2f47c3ddaf3b32 Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 30 May 2025 20:19:34 +0900 Subject: [PATCH] Increase the maximum parsing depth for parsing JSON to 10000 (#3328) This is the same limit as encoding/json in Go and should be sufficient for most use cases. --- src/jv_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jv_parse.c b/src/jv_parse.c index 741823ad..ffcf51f4 100644 --- a/src/jv_parse.c +++ b/src/jv_parse.c @@ -11,7 +11,7 @@ typedef const char* presult; #ifndef MAX_PARSING_DEPTH -#define MAX_PARSING_DEPTH (256) +#define MAX_PARSING_DEPTH (10000) #endif #define TRY(x) do {presult msg__ = (x); if (msg__) return msg__; } while(0)