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