From d571edf1acd3c1b43fea798c8ea6c6f301c02617 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 27 Apr 2009 14:13:54 +0200 Subject: [PATCH] key: check that modifier table is a table Signed-off-by: Julien Danjou --- key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/key.c b/key.c index 2047e67f..254408d6 100644 --- a/key.c +++ b/key.c @@ -400,6 +400,7 @@ luaA_pushmodifiers(lua_State *L, uint16_t modifiers) void luaA_setmodifiers(lua_State *L, int ud, uint16_t *mod) { + luaA_checktable(L, ud); ssize_t len = lua_objlen(L, ud); for(int i = 1; i <= len; i++) {