]> 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:52:59 +0000 (13:52 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jul 2008 13:52:59 +0000 (13:52 +0000)
go deeper than 128.

ext/json/JSON_parser.c

index 6a359ce20614f9cbe50830e7704d6a536c0c3357..1a3bd21e554de19058900c825f3d855856f2ea5f 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 128
+#define JSON_PARSER_MAX_DEPTH 512
 
 
 /*