diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-13 19:00:13 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:34 +1030 |
commit | 93256124a6116e070f7857d9fe04bf6139dfbaee (patch) | |
tree | 264b6ab5de8aa87db51c42016b79286dc4c29fa3 /lua | |
parent | 46ba498b003b1ac4898b8db39c9aea5158af093f (diff) | |
download | lua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.tar.gz lua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.tar.bz2 lua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.zip |
Change default nesting limits to 1000
Increase the default nesting limits to reduce the chance of accidently
throwing an error on valid JSON out of the box.
Diffstat (limited to '')
-rw-r--r-- | lua_cjson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 1e9e91d..772790e 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
@@ -62,8 +62,8 @@ | |||
62 | #define DEFAULT_SPARSE_CONVERT 0 | 62 | #define DEFAULT_SPARSE_CONVERT 0 |
63 | #define DEFAULT_SPARSE_RATIO 2 | 63 | #define DEFAULT_SPARSE_RATIO 2 |
64 | #define DEFAULT_SPARSE_SAFE 10 | 64 | #define DEFAULT_SPARSE_SAFE 10 |
65 | #define DEFAULT_ENCODE_MAX_DEPTH 20 | 65 | #define DEFAULT_ENCODE_MAX_DEPTH 1000 |
66 | #define DEFAULT_DECODE_MAX_DEPTH 20 | 66 | #define DEFAULT_DECODE_MAX_DEPTH 1000 |
67 | #define DEFAULT_ENCODE_INVALID_NUMBERS 0 | 67 | #define DEFAULT_ENCODE_INVALID_NUMBERS 0 |
68 | #define DEFAULT_DECODE_INVALID_NUMBERS 1 | 68 | #define DEFAULT_DECODE_INVALID_NUMBERS 1 |
69 | #define DEFAULT_ENCODE_KEEP_BUFFER 1 | 69 | #define DEFAULT_ENCODE_KEEP_BUFFER 1 |