mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
PSYNC2: Fix off by one buffer size in luaCreateFunction().
This commit is contained in:
parent
452ad2e928
commit
045d65c3af
@ -1159,7 +1159,7 @@ int redis_math_randomseed (lua_State *L) {
|
|||||||
* client context. */
|
* client context. */
|
||||||
int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body) {
|
int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body) {
|
||||||
sds funcdef = sdsempty();
|
sds funcdef = sdsempty();
|
||||||
char fname[42];
|
char fname[43];
|
||||||
|
|
||||||
if (funcname == NULL) {
|
if (funcname == NULL) {
|
||||||
fname[0] = 'f';
|
fname[0] = 'f';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user