diff options
| author | ame <[email protected]> | 2024-07-11 12:27:06 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-07-11 12:27:06 -0500 |
| commit | 027c7a7622a4aa4d0ed6483ba495ab91e0c68991 (patch) | |
| tree | 7d5bc653f6bec52494604ac8c805e311bae080f4 /src/thread.c | |
| parent | 90a2acc2f0c9d3904e1dea737e45ef6b10f96a22 (diff) | |
fixes to ub:33 hashes now safe
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 13 |
1 files changed, 7 insertions, 6 deletions
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;
|
