rasmus          Wed Jul 30 13:57:47 2008 UTC

  Modified files:              
    /php-src/ext/json   JSON_parser.c 
  Log:
  We can afford a larger stack here and other json parsers out there
  go deeper than 128.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.17&r2=1.18&diff_format=u
Index: php-src/ext/json/JSON_parser.c
diff -u php-src/ext/json/JSON_parser.c:1.17 php-src/ext/json/JSON_parser.c:1.18
--- php-src/ext/json/JSON_parser.c:1.17 Sun Oct  7 05:15:03 2007
+++ php-src/ext/json/JSON_parser.c      Wed Jul 30 13:57:47 2008
@@ -206,7 +206,7 @@
 
 /* }}} */
 
-#define JSON_PARSER_MAX_DEPTH 128
+#define JSON_PARSER_MAX_DEPTH 512
 
 /*
    A stack maintains the states of nested structures.



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to