diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-05-20 13:14:33 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-05-20 13:14:33 -0300 |
| commit | 42d40581dd919fb134c07027ca1ce0844c670daf (patch) | |
| tree | 9a1037510268dc09dbedebf2a91729399bcca2e0 /llex.c | |
| parent | e435aaabef8e717e0812a16a82b56acd11fb34c1 (diff) | |
| download | lua-42d40581dd919fb134c07027ca1ce0844c670daf.tar.gz lua-42d40581dd919fb134c07027ca1ce0844c670daf.tar.bz2 lua-42d40581dd919fb134c07027ca1ce0844c670daf.zip | |
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".
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
