From 3a1757693bc754817a996533593683da702d890e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 24 Jun 2024 17:39:09 +0200 Subject: [PATCH] lua: apply patch for "Parameter 'what' of 'debug.getinfo' cannot start with '>'" --- lib/lua/src/ldblib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lua/src/ldblib.c b/lib/lua/src/ldblib.c index 628a6c458..2c55edcda 100644 --- a/lib/lua/src/ldblib.c +++ b/lib/lua/src/ldblib.c @@ -101,6 +101,7 @@ static int db_getinfo (lua_State *L) { int arg; lua_State *L1 = getthread(L, &arg); const char *options = luaL_optstring(L, arg+2, "flnSu"); + luaL_argcheck(L, options[0] != '>', arg + 2, "invalid option '>'"); if (lua_isnumber(L, arg+1)) { if (!lua_getstack(L1, (int)lua_tointeger(L, arg+1), &ar)) { lua_pushnil(L); /* level out of range */