diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2008-07-30 13:52:59 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2008-07-30 13:52:59 +0000 |
commit | 2f469e8c15d856ecee876343aa29f40c0d011526 (patch) | |
tree | 03852fb31b1e7c219167bff981f1e02f60e0e91b /ext/json/JSON_parser.c | |
parent | 0afc07b26a4f2cc2b90f126dc3d58f6d0576a78d (diff) | |
download | php-git-2f469e8c15d856ecee876343aa29f40c0d011526.tar.gz |
We can afford a larger stack here and other json parsers out there
go deeper than 128.
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r-- | ext/json/JSON_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index 6a359ce206..1a3bd21e55 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -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 /* |