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.
This commit is contained in:
itchyny authored and GitHub committed 2025-05-30 20:19:34 +09:00
1 parent 9ac6ddae22
commit f28720f699
1 file changed
+1 -1
+1 -1
View File
@@ -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)