diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-12 19:27:18 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:34 +1030 |
commit | 5e36beccab38fa40b2c324c9339bbd5f1a3f24e3 (patch) | |
tree | 28ee3145a3c4e472c6b5bcdae574444a95aba479 /THANKS | |
parent | d4f438965e41660bd0beda772ba3d3b96a492571 (diff) | |
download | lua-cjson-5e36beccab38fa40b2c324c9339bbd5f1a3f24e3.tar.gz lua-cjson-5e36beccab38fa40b2c324c9339bbd5f1a3f24e3.tar.bz2 lua-cjson-5e36beccab38fa40b2c324c9339bbd5f1a3f24e3.zip |
Add configurable decode nesting limit
Lua 5.2 is able to extend the Lua stack much further than earlier
versions. Recent testing shows it is possible for Lua CJSON to hit the
process stack limit and segfault. Add a configurable JSON object/array
nesting limit to prevent running out of process stack space.
The current limit is 20 (same as encode).
Add decode_max_depth() configuration function.
Diffstat (limited to 'THANKS')
0 files changed, 0 insertions, 0 deletions