From: Rasmus Lerdorf Date: Wed, 30 Jul 2008 13:57:47 +0000 (+0000) Subject: We can afford a larger stack here and other json parsers out there X-Git-Tag: BEFORE_HEAD_NS_CHANGE~956 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=664bb141a175a4579f48828acd9cb65002130a59;p=php We can afford a larger stack here and other json parsers out there go deeper than 128. --- 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.