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:
1 parent
9ac6ddae22
commit
f28720f699
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user