From a948a2605d70e19b30df10188951c42ce471d298 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Wed, 30 Jul 2008 13:55:27 +0000 Subject: [PATCH] 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(-) diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index c054d5038e..70ca182953 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 /* -- 2.50.1