Bug#1041902: lua5.4: 'lua_settop' may use an invalid pointer to stack

2023-07-25 Thread Asher Gordon
Control: reassign -1 src:lua5.4 Asher Gordon writes: > I think this fix from upstream should be backported to Debian's Lua > 5.4, and possibly 5.{1,2,3} as well (I haven't tested those). I found out Lua 5.4 is the first version with lua_toclose() (and the __close() metamethod), so the particula

Bug#1041902: lua5.4: 'lua_settop' may use an invalid pointer to stack

2023-07-24 Thread Asher Gordon
Package: lua5.4 Version: 5.4.4-3 Severity: normal X-Debbugs-Cc: none, Asher Gordon Dear Maintainer, I found a bug in which calling lua_toclose() while the "main" stack is active (i.e., not inside a function which was called by lua_call()), can sometimes cause memory errors later. As I later foun