mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
PSYNC2: Fix off by one buffer size in luaCreateFunction().
This commit is contained in:
parent
eeac1d35d9
commit
8449227f55
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user