From 401c3e213c89d98bbeda399b4e17fbd636b80ac0 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 15 Dec 2010 16:07:49 +0100 Subject: [PATCH] bulk transfers limited to 512 MB as this is the new limit of all the redis strings --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2