might easily burst stack

This commit is contained in:
Axel Kittenberger 2011-02-24 16:55:16 +00:00
parent b1aa47e816
commit af90ed8fe5
1 changed files with 1 additions and 0 deletions

View File

@ -845,6 +845,7 @@ l_exec(lua_State *L)
/* writes a log message, prepares the message only if actually needed. */
if (check_logcat("Exec") >= settings.log_level) {
int i;
lua_checkstack(L, lua_gettop(L) + argc * 3 + 2);
lua_pushvalue(L, 1);
for(i = 1; i <= argc; i++) {
lua_pushstring(L, " [");