Skip to content

Commit

Permalink
We can afford a larger stack here and other json parsers out there
Browse files Browse the repository at this point in the history
go deeper than 128.
  • Loading branch information
rlerdorf committed Jul 30, 2008
1 parent 0ce37b0 commit 664bb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/json/JSON_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static const int state_transition_table[30][31] = {

/* }}} */

#define JSON_PARSER_MAX_DEPTH 128
#define JSON_PARSER_MAX_DEPTH 512

/*
A stack maintains the states of nested structures.
Expand Down

0 comments on commit 664bb14

Please sign in to comment.