From 1cef2da0ade36f391e31c304d32624ecc7cb86ba Mon Sep 17 00:00:00 2001 From: actboy168 Date: Fri, 26 Apr 2024 10:51:42 +0800 Subject: [PATCH] add a check --- binding/lua_epoll.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/binding/lua_epoll.cpp b/binding/lua_epoll.cpp index ed35b327..86a33c29 100644 --- a/binding/lua_epoll.cpp +++ b/binding/lua_epoll.cpp @@ -33,6 +33,7 @@ namespace bee::lua_epoll { }; static net::fd_t ep_tofd(lua_State *L, int idx) { + luaL_checktype(L, idx, LUA_TUSERDATA); return lua::toudata(L, idx); }