From: antirez Date: Wed, 15 Dec 2010 15:07:49 +0000 (+0100) Subject: bulk transfers limited to 512 MB as this is the new limit of all the redis strings X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/401c3e213c89d98bbeda399b4e17fbd636b80ac0?ds=sidebyside bulk transfers limited to 512 MB as this is the new limit of all the redis strings --- diff --git a/src/networking.c b/src/networking.c index 1dab8927..26ee46f6 100644 --- a/src/networking.c +++ b/src/networking.c @@ -804,7 +804,7 @@ int processMultibulkBuffer(redisClient *c) { bulklen = strtol(c->querybuf+pos+1,&eptr,10); tolerr = (eptr[0] != '\r'); 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"); setProtocolError(c,pos);