From 2f469e8c15d856ecee876343aa29f40c0d011526 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Wed, 30 Jul 2008 13:52:59 +0000 Subject: We can afford a larger stack here and other json parsers out there go deeper than 128. --- ext/json/JSON_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/json/JSON_parser.c') diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index 6a359ce206..1a3bd21e55 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -201,7 +201,7 @@ static const int state_transition_table[30][31] = { /*29*/ {29,29,-1,-1,-1,-1,-1,-1, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1} }; -#define JSON_PARSER_MAX_DEPTH 128 +#define JSON_PARSER_MAX_DEPTH 512 /* -- cgit v1.2.1