]> granicus.if.org Git - php/commitdiff
We can afford a larger stack here and other json parsers out there
authorRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jul 2008 13:57:47 +0000 (13:57 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jul 2008 13:57:47 +0000 (13:57 +0000)
go deeper than 128.

ext/json/JSON_parser.c

index d30904a178f72f8f785c3f65931b197f1b6329a3..9de481fc1eaf918071278f282ba5ebe6dfca79f0 100644 (file)
@@ -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.