From c2dc6e8e947ed0c7b18d452592f722f56ee1f96a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 14 Mar 2025 12:37:19 -0300 Subject: Missing GC barrier in 'luaV_finishset' --- lapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index eab12cac..f59430a7 100644 --- a/lapi.c +++ b/lapi.c @@ -888,9 +888,8 @@ LUA_API void lua_settable (lua_State *L, int idx) { api_checkpop(L, 2); t = index2value(L, idx); luaV_fastset(t, s2v(L->top.p - 2), s2v(L->top.p - 1), hres, luaH_pset); - if (hres == HOK) { + if (hres == HOK) luaV_finishfastset(L, t, s2v(L->top.p - 1)); - } else luaV_finishset(L, t, s2v(L->top.p - 2), s2v(L->top.p - 1), hres); L->top.p -= 2; /* pop index and value */ -- cgit v1.2.3-55-g6feb