]> granicus.if.org Git - php/commitdiff
I don't see any reason to leave the stack limitation at 20. We have
authorRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 22:37:59 +0000 (22:37 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 22:37:59 +0000 (22:37 +0000)
reports of this limit being hit now and as far as I can tell bumping it
to 128 isn't going break anything in the parser code.

ext/json/JSON_parser.c

index ae8e7522e04ae37e6cb954b26dca940f0730f755..15424dffcbf3857fecdfd47a95065e29806f3f69 100644 (file)
@@ -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 40
 
 
 /*