From 664bb141a175a4579f48828acd9cb65002130a59 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Wed, 30 Jul 2008 13:57:47 +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 d30904a178..9de481fc1e 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -206,7 +206,7 @@ static const int state_transition_table[30][31] = { /* }}} */ -#define JSON_PARSER_MAX_DEPTH 128 +#define JSON_PARSER_MAX_DEPTH 512 /* A stack maintains the states of nested structures. -- 2.50.1