From 1e64c1391f9a14115b5cc82066dbf545ae73ee27 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Oct 2022 16:44:06 -0300 Subject: Bug: stack overflow with nesting of coroutine.close --- manual/manual.of | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/manual.of b/manual/manual.of index 10c16bd1..6d19e251 100644 --- a/manual/manual.of +++ b/manual/manual.of @@ -4160,7 +4160,7 @@ and then pops the top element. } -@APIEntry{int lua_resetthread (lua_State *L);| +@APIEntry{int lua_resetthread (lua_State *L, lua_State *from);| @apii{0,?,-} Resets a thread, cleaning its call stack and closing all pending @@ -4173,6 +4173,11 @@ or an error status otherwise. In case of error, leaves the error object on the top of the stack. +The parameter @id{from} represents the coroutine that is resetting @id{L}. +If there is no such coroutine, +this parameter can be @id{NULL}. +(This parameter was introduced in @N{release 5.4.5}.) + } @APIEntry{int lua_resume (lua_State *L, lua_State *from, int nargs, -- cgit v1.2.3-55-g6feb