commit | 42d40581dd919fb134c07027ca1ce0844c670daf | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri May 20 13:14:33 2022 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri May 20 13:14:33 2022 -0300 |
tree | 9a1037510268dc09dbedebf2a91729399bcca2e0 | |
parent | e435aaabef8e717e0812a16a82b56acd11fb34c1 [diff] |
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".
This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.
Please do not send pull requests. To report issues, post a message to the Lua mailing list.
Download official Lua releases from Lua.org.