aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
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 /ltests.c
parentb85816b9a884cbe4cfd139a8e11ffc28ecead576 (diff)
downloadlua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.tar.gz
lua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.tar.bz2
lua-1e64c1391f9a14115b5cc82066dbf545ae73ee27.zip
Bug: stack overflow with nesting of coroutine.close
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index 9a887f98..734a96da 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1533,7 +1533,7 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
1533 lua_newthread(L1); 1533 lua_newthread(L1);
1534 } 1534 }
1535 else if EQ("resetthread") { 1535 else if EQ("resetthread") {
1536 lua_pushinteger(L1, lua_resetthread(L1)); 1536 lua_pushinteger(L1, lua_resetthread(L1, L));
1537 } 1537 }
1538 else if EQ("newuserdata") { 1538 else if EQ("newuserdata") {
1539 lua_newuserdata(L1, getnum); 1539 lua_newuserdata(L1, getnum);