Now
MAIN commitmail json YAML
src/external/mit/lua/dist/src/ldebug.c@1.13
/
diff
/
nxr@1.13
src/external/mit/lua/dist/src/lvm.c@1.16 / diff / nxr@1.16
src/external/mit/lua/dist/src/lvm.c@1.16 / diff / nxr@1.16
lua: apply upstream bugfix for "Lua-stack overflow when C stack overflows while
handling an error." (CVE-2022-33099)
Save stack space while handling errors
Because error handling (luaG_errormsg) uses slots from EXTRA_STACK,
and some errors can recur (e.g., string overflow while creating an
error message in 'luaG_runerror', or a C-stack overflow before calling
the message handler), the code should use stack slots with parsimony.
This commit fixes the bug "Lua-stack overflow when C stack overflows
while handling an error".
handling an error." (CVE-2022-33099)
Save stack space while handling errors
Because error handling (luaG_errormsg) uses slots from EXTRA_STACK,
and some errors can recur (e.g., string overflow while creating an
error message in 'luaG_runerror', or a C-stack overflow before calling
the message handler), the code should use stack slots with parsimony.
This commit fixes the bug "Lua-stack overflow when C stack overflows
while handling an error".