aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-10-25 16:44:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-10-25 16:44:06 -0300
commit1e64c1391f9a14115b5cc82066dbf545ae73ee27 (patch)
tree4aa3b6c2854c920ed825bf9fe46d275826e5ab6e /manual
parentb85816b9a884cbe4cfd139a8e11ffc28ecead576 (diff)
downloadlua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.tar.gz
lua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.tar.bz2
lua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.zip
Bug: stack overflow with nesting of coroutine.close
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of7
1 files changed, 6 insertions, 1 deletions
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.
4160 4160
4161} 4161}
4162 4162
4163@APIEntry{int lua_resetthread (lua_State *L);| 4163@APIEntry{int lua_resetthread (lua_State *L, lua_State *from);|
4164@apii{0,?,-} 4164@apii{0,?,-}
4165 4165
4166Resets a thread, cleaning its call stack and closing all pending 4166Resets a thread, cleaning its call stack and closing all pending
@@ -4173,6 +4173,11 @@ or an error status otherwise.
4173In case of error, 4173In case of error,
4174leaves the error object on the top of the stack. 4174leaves the error object on the top of the stack.
4175 4175
4176The parameter @id{from} represents the coroutine that is resetting @id{L}.
4177If there is no such coroutine,
4178this parameter can be @id{NULL}.
4179(This parameter was introduced in @N{release 5.4.5}.)
4180
4176} 4181}
4177 4182
4178@APIEntry{int lua_resume (lua_State *L, lua_State *from, int nargs, 4183@APIEntry{int lua_resume (lua_State *L, lua_State *from, int nargs,