aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorlijunlong <lijunlong@openresty.com>2026-06-07 14:23:34 +0800
committerlijunlong <lijunlong@openresty.com>2026-06-07 20:39:00 +0800
commitb97100852940cd7cd0ee187326778fa7c911d92f (patch)
tree7491cb15c132b2b36ce923b22803fbd80c10fc47 /NEWS
parent617164a0fe3bb647128178f9caefb304b8573bb6 (diff)
downloadlua-cjson-b97100852940cd7cd0ee187326778fa7c911d92f.tar.gz
lua-cjson-b97100852940cd7cd0ee187326778fa7c911d92f.tar.bz2
lua-cjson-b97100852940cd7cd0ee187326778fa7c911d92f.zip
bugfix: own a copy of the encode_indent string
json_cfg_encode_indent stored the raw luaL_checkstring pointer, which aliases a Lua string that can be garbage-collected, causing a use-after-free / heap info-leak on a later encode(). Store a malloc'd copy, freed on reset and in __gc.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions