From c57e5e58e197fca322c2840efa435eabb62e4d9d Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 11 Jul 2024 12:27:06 -0500 Subject: fixes to ub:33 hashes now safe --- src/thread.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/thread.c') diff --git a/src/thread.c b/src/thread.c index 5b3cb11..e6858f5 100644 --- a/src/thread.c +++ b/src/thread.c @@ -180,10 +180,8 @@ int l_async(lua_State* oL){ lua_getglobal(oL, "_G"); luaI_deepcopy(oL, L, SKIP_GC); - //lua_set_global_table(L); - - return 0; - + lua_set_global_table(L); + struct thread_info* args = calloc(1, sizeof * args); args->L = L; //args->lock = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER; @@ -344,11 +342,14 @@ int l_buffer(lua_State* L){ return 1; } +void _lua_getfenv(lua_State* L){ + +} int l_testcopy(lua_State* L){ lua_settop(L, 0); + + lua_State* temp = luaL_newstate(); - lua_getglobal(L, "_G"); - luaI_deepcopy(L, temp, SKIP_GC); //luaI_deepcopy(temp, L, NULL, SKIP_GC); lua_close(temp); return 1; -- cgit v1.2.3