From: Rasmus Lerdorf Date: Wed, 30 Jul 2008 13:52:59 +0000 (+0000) Subject: We can afford a larger stack here and other json parsers out there X-Git-Tag: php-5.3.0alpha1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f469e8c15d856ecee876343aa29f40c0d011526;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 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 /*