From: Rasmus Lerdorf Date: Thu, 24 May 2007 22:39:06 +0000 (+0000) Subject: MFB 5_2 - increase json parser depth from 20 to 128 X-Git-Tag: RELEASE_1_4~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=814847dba21145b428adf8bbd485e2835a64d92b;p=php MFB 5_2 - increase json parser depth from 20 to 128 --- diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index b041a43cc1..6939a6d9e9 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 20 +#define JSON_PARSER_MAX_DEPTH 128 /*