]> git.saurik.com Git - redis.git/commitdiff
bulk transfers limited to 512 MB as this is the new limit of all the redis strings
authorantirez <antirez@gmail.com>
Wed, 15 Dec 2010 15:07:49 +0000 (16:07 +0100)
committerantirez <antirez@gmail.com>
Wed, 15 Dec 2010 15:07:49 +0000 (16:07 +0100)
src/networking.c

index 1dab8927586af844454abad521431a69437e7479..26ee46f63cfbbfa1566321ac3ccd60a38289179c 100644 (file)
@@ -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);