]> granicus.if.org Git - php/commitdiff
MFB 5_2 - increase json parser depth from 20 to 128
authorRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 22:39:06 +0000 (22:39 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 22:39:06 +0000 (22:39 +0000)
ext/json/JSON_parser.c

index b041a43cc17fb5407f42141f4d5752c6542c3939..6939a6d9e9fb9d2a7e489439d0a3c78a7ab617c4 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 128
 
 
 /*