Permalink
Browse files

We can afford a larger stack here and other json parsers out there

go deeper than 128.
  • Loading branch information...
1 parent 0afc07b commit 2f469e8c15d856ecee876343aa29f40c0d011526 @rlerdorf rlerdorf committed Jul 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/json/JSON_parser.c
View
@@ -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
/*

0 comments on commit 2f469e8

Please sign in to comment.