diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-04-25 19:15:56 +0930 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-04-25 19:15:56 +0930 |
commit | 2a12b3fa4b8cdef53288aa2667df0dad2d7f2fc2 (patch) | |
tree | 553107e5ad0d580326cea4801b73846e8c0abfe9 /lua_cjson.c | |
parent | 06b42604a44f49e94bad277f87c9024b40a7e491 (diff) | |
download | lua-cjson-2a12b3fa4b8cdef53288aa2667df0dad2d7f2fc2.tar.gz lua-cjson-2a12b3fa4b8cdef53288aa2667df0dad2d7f2fc2.tar.bz2 lua-cjson-2a12b3fa4b8cdef53288aa2667df0dad2d7f2fc2.zip |
Grow decode stack, prealloc strings during encode
- Check stack usage during decode to prevent crashing in excessively
nested data structures.
- Preallocate the required memory for json_append_string().
Diffstat (limited to 'lua_cjson.c')
0 files changed, 0 insertions, 0 deletions