mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
might easily burst stack
This commit is contained in:
parent
b1aa47e816
commit
af90ed8fe5
1
lsyncd.c
1
lsyncd.c
@ -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, " [");
|
||||
|
Loading…
Reference in New Issue
Block a user