mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
bulk transfers limited to 512 MB as this is the new limit of all the redis strings
This commit is contained in:
parent
beb1aab3fd
commit
401c3e213c
@ -804,7 +804,7 @@ int processMultibulkBuffer(redisClient *c) {
|
|||||||
bulklen = strtol(c->querybuf+pos+1,&eptr,10);
|
bulklen = strtol(c->querybuf+pos+1,&eptr,10);
|
||||||
tolerr = (eptr[0] != '\r');
|
tolerr = (eptr[0] != '\r');
|
||||||
if (tolerr || bulklen == LONG_MIN || bulklen == LONG_MAX ||
|
if (tolerr || bulklen == LONG_MIN || bulklen == LONG_MAX ||
|
||||||
bulklen < 0 || bulklen > 1024*1024*1024)
|
bulklen < 0 || bulklen > 512*1024*1024)
|
||||||
{
|
{
|
||||||
addReplyError(c,"Protocol error: invalid bulk length");
|
addReplyError(c,"Protocol error: invalid bulk length");
|
||||||
setProtocolError(c,pos);
|
setProtocolError(c,pos);
|
||||||
|
Loading…
Reference in New Issue
Block a user