diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 17:57:42 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 17:57:42 -0300 |
| commit | 3228a97c6a953dcf397944161bb64b12f1ff5384 (patch) | |
| tree | 6497f6f8e93ba3bb381c0b48aed71646fca3f9b0 /lundump.h | |
| parent | 0c16a42d61d08266033ff63bc5dfade6312b7359 (diff) | |
| download | lua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.gz lua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.bz2 lua-3228a97c6a953dcf397944161bb64b12f1ff5384.zip | |
Bug: 'lua_load' does not preserve the stack
'lua_load' does not preserve the stack through the calls to the
reader function, as it should. Immediately after the first call (to
detect whether chunk is binary) it adds stuff, and it also adds a new
table when starting the compilation of each new function.
Diffstat (limited to 'lundump.h')
| -rw-r--r-- | lundump.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -30,8 +30,8 @@ | |||
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | /* load one chunk; from lundump.c */ | 32 | /* load one chunk; from lundump.c */ |
| 33 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, | 33 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, Table *anchor, |
| 34 | int fixed); | 34 | const char* name, int fixed); |
| 35 | 35 | ||
| 36 | /* dump one chunk; from ldump.c */ | 36 | /* dump one chunk; from ldump.c */ |
| 37 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, | 37 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, |
