From 045d65c3af460a71d2b89b84f5e0b85d98320a77 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 29 Nov 2017 17:11:46 +0100 Subject: [PATCH] PSYNC2: Fix off by one buffer size in luaCreateFunction(). --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index 1ef91a4d..848629e2 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -1159,7 +1159,7 @@ int redis_math_randomseed (lua_State *L) { * client context. */ int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body) { sds funcdef = sdsempty(); - char fname[42]; + char fname[43]; if (funcname == NULL) { fname[0] = 'f';