[trunk] -> [community-testing] 'hexchat-2.14.3-7' add
This commit is contained in:
30
trunk/0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch
Normal file
30
trunk/0004-fix_segfault_on_lua_pop_with_Lua_5.4.3.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From d6319bd8f21042db62f6c7094066052d894416ef Mon Sep 17 00:00:00 2001
|
||||
From: Mateusz Gozdek <mgozdekof@gmail.com>
|
||||
Date: Sun, 4 Apr 2021 21:07:30 +0200
|
||||
Subject: [PATCH] plugins/lua/lua.c: fix segfault on lua_pop with Lua 5.4.3
|
||||
|
||||
Closes #2558
|
||||
|
||||
Co-authored-by: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
|
||||
---
|
||||
plugins/lua/lua.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c
|
||||
index d73fbb230..d1370eafb 100644
|
||||
--- a/plugins/lua/lua.c
|
||||
+++ b/plugins/lua/lua.c
|
||||
@@ -1189,11 +1189,11 @@ static void patch_clibs(lua_State *L)
|
||||
if(lua_type(L, -2) == LUA_TLIGHTUSERDATA && lua_type(L, -1) == LUA_TTABLE)
|
||||
{
|
||||
lua_setfield(L, LUA_REGISTRYINDEX, "_CLIBS");
|
||||
+ lua_pop(L, 1);
|
||||
break;
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
- lua_pop(L, 1);
|
||||
}
|
||||
|
||||
static GPtrArray *scripts;
|
||||
Reference in New Issue
Block a user