Don't over-allocate the sds string for large bulk requests.
Don't over-allocate the sds string for large bulk requests.

The call to sdsMakeRoomFor() did not accounted for the amount of data
already present in the query buffer, resulting into over-allocation.

0x55/redis-3.0-annotated,francischan714/redis,hawkchch/redis,j0hnma/szredis,dongqifan2/redis-3.0-annotated,weizijun/redis,wenxueliu/redis_comment,holstvoogd/redis,charsyam/redis,MSOpenTech/redis,SyntaxStacks/redis,h0x91b/redis,zhcy/redis,rouzier/redis,onlymellb/redis-3.0-annotated,OmarQunsul/graph-redis,hornen/redis,yuzhangjob/redis-3.0-annotated-unstable,aim-for-better/redis,duanx/redis,kaushik94/redis,GitHubMota/redis,zy416548283/redis-3.0-annotated,himoca/redis,xujunhai1991/redis,dayuoba/redis,Aliceljm1/redis,brg-liuwei/redis,HeartSaVioR/redis,haima-zju/redis-3.0-annotated,rouzier/redis,izhoujie/redis,xuguruogu/redis,rogerlz/redis,netroby/redis,MasahikoSawada/redis,CodeJuan/redis,Aliceljm1/redis,HouKangkang/redis-3.0-annotated,darksideofthemoo/redis-histogram,j0hnma/hszredis,fankeke/redis-3.0-annotated,jingjidejuren/redis,j0hnma/szredis,kensou97/redis,ofirluzon/redis,taoguan/redis,MSOpenTech/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,fankeke/redis-3.0-annotated,gilala/redis,ouyangkongtong/redis,yuzhangjob/redis-3.0-annotated-unstable,atreeyang/redis,yuhc/redis-benchmark-enhanced,wuyu201321060203/redis-3.0-annotated,YongMan/redis,abhiklodh/redis,yybirdcf/learn-redis,mengyou0304/redis,haima-zju/redis-3.0-annotated,gilala/bjredis,jacklee0810/redis-3.0-annotated,soloestoy/redis,qiyang0221/redis,huyuezheng/redis,ksarch-saas/redis,seandsky/redis,soloestoy/redis,h0x91b/redis,zhcy/redis,Hailei/redis,simplestbest/redis,JoeWoo/redis,Hailei/redis,zczhuohuo/redis,pcarrier/redis,rogerchina/redis,tellapart/redis,ipmobiletech/redis,flashbuckets/redis,yossigo/redis,jackyan/redis,CodeJuan/redis,nuxeh/redis,HunanTV/redis,wenxueliu/redis_comment,zguangyu/redis,mingyaaaa/redis,tzq668766/redis-3.0-annotated,ReadCode/redis-3.0-annotated,magastzheng/redis-3.0-annotated,wbailey5/redis,OmarQunsul/graph-redis,magastzheng/redis-3.0-annotated,rogerlz/redis,pedigree/redis,GrimDerp/redis,SummonY/redis,itamarhaber/redis,pmem/redis,ctripcorp/redis,PKRoma/redis,guker/redis,JoeWoo/redis,slfs007/mk-redis,colstrom/redis,blackmady/redis,whille/redis-3.0-annotated,ytjiang/redis,davidradunz/redis,programmecat/redis,wuyu201321060203/redis-3.0-annotated,riyan8250/redis,rogerchina/redis,mengzhejin/RedisStudy,dongqifan2/redis-3.0-annotated,janekmi/redis,francischan714/redis,spearhead-ea/redis,mgk/redis,zhiliaoniu/redis,shshlzh/redis-3.0-annotated,slfs007/mk-redis,gilala/bjredis,sunlianqiang/redis-3.0-annotated,pcarrier/redis,StevenTsai/redis,honestme/redis,soveran/redis,StevenTsai/redis,simplestbest/redis,timothyohare/3rdPartySrc-redis,mverrilli/redis,takeshineshiro/redis,ouyangkongtong/redis,elkingtonmcb/redis,CodeJuan/redis,valdsJohn/redis,adamweixuan/redis-3.0-annotated,cnbin/redis,whille/redis-3.0-annotated,gongice/redis-3.0-annotated,whille/redis-3.0-annotated,allengaller/redis,hgl888/redis,StevenTsai/redis,jbochi/redis,jingjidejuren/redis,PKRoma/redis,rogerlz/redis,tanghaodong25/redis,taoguan/redis,drinkthere/redis-3.0-annotated,hedisdb/hedis,seandsky/redis,pedigree/redis,mumingv/redis-3.0-annotated,aim-for-better/redis,zhiliaoniu/redis,shshlzh/redis-3.0-annotated,linfangrong/redis,hedisdb/hedis,MasahikoSawada/redis,tellapart/redis,LongXQ/redis,programmecat/redis,RepmujNetsik/redis,HeartSaVioR/redis,riyan8250/redis,Sciumo/redis,janekmi/redis,tellapart/redis,wprice/redis,ipmobiletech/redis,colstrom/redis,mingyaaaa/redis,tzq668766/redis-3.0-annotated,soloestoy/redis,csuhawk/redis,HeartSaVioR/redis,Wangyao14cyy/redis,Sciumo/redis,shreesundara/redis,healerkx/redis,duanx/redis,JoeWoo/redis,takeshineshiro/redis,huangz1990/experiment-redis,hawkchch/redis,josiahcarlson/redis,buobao/redis-3.0-annotated,AALEKH/redis,ramonsnir/redis,shining-yang/redis,hedisdb/hedis,tjschuck/redis,wujf/redis,atreeyang/redis,Aliceljm1/redis,SyntaxStacks/redis,GitHubMota/redis,rrsean/redis-3.0-annotated,rrsean/redis-3.0-annotated,cloudrain21/redis,dreamquster/redis,YongMan/redis,4396/redis,dreamquster/redis,MSOpenTech/redis,zczhuohuo/redis,seppo0010/redis,holstvoogd/redis,splitice/redis,4396/redis,ytjiang/redis,ttuna/msot-redis,wprice/redis,onlymellb/redis-3.0-annotated,fengshao0907/redis,yossigo/redis,JoeWoo/redis,takeshineshiro/redis,Wangyao14cyy/redis,OmarQunsul/graph-redis,pkdevbox/redis,gilala/hbjredis,PKRoma/redis,cusspvz/redis,xuzhezhaozhao/redis_reading,antirez/redis,timothyohare/3rdPartySrc-redis,soloestoy/redis,arijitvt/redis,jingjidejuren/redis,harrisonfeng/redis,cnbin/redis,honestme/redis,190235047/redis,vincent-vivian-liu/redis,ksarch-saas/redis,himoca/redis,hornen/redis,xlzhan/redis,healerkx/redis,mengyou0304/redis,moonbingbing/redis-3.0-annotated,sunheehnus/redis,seppo0010/rlite-server,GrimDerp/redis,francischan714/redis,PKRoma/redis,itamarhaber/redis,ituncle/redis,cusspvz/redis,gilala/redis,ipmobiletech/redis,fengshao0907/redis-3.0-annotated,HeartSaVioR/redis,josiahcarlson/redis,nilyang/redis-tdd-annotation,gilala/hbjredis,kaushik94/redis,xuzhezhaozhao/redis_reading,rogerlz/redis,izhoujie/redis,spinlock/redis,alenslan/redis,ketor/redis,NBSW/redis,linfangrong/redis,mcanthony/redis,fengshao0907/redis-3.0-annotated,itugs/redis,colstrom/redis,miaoyc1989/redis-3.0-annotated,neomantra/redis,cloudrain21/redis,sunlianqiang/redis-3.0-annotated,darksideofthemoo/redis-histogram,xuzhezhaozhao/redis_reading,brg-liuwei/redis,onlymellb/redis-3.0-annotated,shining-yang/redis,huangz1990/redis-3.0-annotated,tjschuck/redis,wbailey5/redis,devaos/redis,AplayER/redis,devaos/redis,mumingv/redis,narma/redis,Soledad89/redis,programmecat/redis,jbochi/parallel_redis,fengshao0907/redis,kmiku7/redis,narma/redis,pedigree/redis,ofirluzon/redis,antirez/redis,kensou97/redis,huangz1990/experiment-redis,wangyikai/redis,riyan8250/redis,mumingv/redis-3.0-annotated,wujf/redis,mumingv/redis,GrimDerp/redis,saisai/redis,netroby/redis,YuanZhewei/redis,PradheepShrinivasan/redis,cusspvz/redis,SyntaxStacks/redis,ctripcorp/redis,adamweixuan/redis-3.0-annotated,ofirluzon/redis,kaushik94/redis,RepmujNetsik/redis,charsyam/redis,gilala/hredis,wangyikai/redis,Aliceljm1/redis,shshlzh/redis-3.0-annotated,badboy/redis,janekmi/redis,antirez/redis,citusdata/redis,wuyu201321060203/redis-3.0-annotated,SummonY/redis,nuxeh/redis,supasate/redis,buobao/redis-3.0-annotated,aim-for-better/redis,taoguan/redis,wprice/redis,kmiku7/redis,NBSW/redis,itugs/redis,SummonY/redis,shining-yang/redis,j0hnma/szredis,NBSW/redis,qiyang0221/redis,nuxeh/redis,jingjidejuren/redis,modulexcite/redis,arijitvt/redis,Soledad89/redis,louisliangjun/redis,csuhawk/redis,nnog/redis,pedigree/redis,xlzhan/redis,harrisonfeng/redis,Soledad89/redis,mattsta/redis,pkdevbox/redis,HunanTV/redis,jasonkying/redis,zguangyu/redis,YuraLukashik/redis,rogerchina/redis,charsyam/redis,sunheehnus/redis,gilala/hredis,StevenTsai/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,GrimDerp/redis,netroby/redis,jxwr/redis,moonbingbing/redis-3.0-annotated,jasonkying/redis,harrisonfeng/redis,badboy/redis,mingyaaaa/redis,h0x91b/redis,flashbuckets/redis,riyan8250/redis,RepmujNetsik/redis,badboy/redis,tjschuck/redis,huangz1990/redis-3.0-annotated,PradheepShrinivasan/redis,oranagra/redis,gaoxianglong/redis,mumingv/redis,ituncle/redis,xlzhan/redis,louisliangjun/redis,LongXQ/redis,msn217/redis-3.0-annotated,Markgorden/redis,netroby/redis,badboy/redis,YuraLukashik/redis,seppo0010/rlite-server,july2993/redis,Wangyao14cyy/redis,itamarhaber/redis,huangz1990/experiment-redis,ton31337/redis,csuhawk/redis,CodeJuan/redis,miaoyc1989/redis-3.0-annotated,timothyohare/3rdPartySrc-redis,zhaobo1023/redis-3.0-annotated,jackyan/redis,iandyh/redis,abhiklodh/redis,guker/redis,ncopa/redis,gaoxianglong/redis,huangz1990/experiment-redis,ErikDubbelboer/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,yuzhangjob/redis-3.0-annotated-unstable,itugs/redis,modulexcite/redis,PradheepShrinivasan/redis,LongXQ/redis,qiyang0221/redis,ksarch-saas/redis,gaoxianglong/redis,roth1002/redis,HunanTV/redis,Aliceljm1/redis-3.0-annotated,msn217/redis-3.0-annotated,MOON-CLJ/redis,dayuoba/redis,maodeyi/redis_lua,j0hnma/hszredis,izhoujie/redis,unasm/redis-3.0-annotated,csuhawk/redis,aim-for-better/redis,zhiliaoniu/redis,YuanZhewei/redis,charsyam/redis,twskipper/redis,zczhuohuo/redis,hawkchch/redis,yuhc/redis-benchmark-enhanced,jasonkying/redis,spinlock/redis,jackyan/redis,july2993/redis,dongqifan2/redis-3.0-annotated,dayuoba/redis,HunanTV/redis,190235047/redis,hawkchch/redis,linfangrong/redis,josiahcarlson/redis,jbochi/redis,yybirdcf/learn-redis,blackmady/redis,rrsean/redis-3.0-annotated,ErikDubbelboer/redis,a-pavlov/redis,qiyang0221/redis,YuanZhewei/redis,zguangyu/redis,wbailey5/redis,4396/redis,davidradunz/redis,brg-liuwei/redis,zhcy/redis,shreesundara/redis,darksideofthemoo/redis-histogram,Aaron1992/redis,iandyh/redis,roth1002/redis,ncopa/redis,holstvoogd/redis,allengaller/redis,thomasdarimont/redis,thomasdarimont/redis,gilala/redis,j0hnma/szredis,ttuna/msot-redis,valdsJohn/redis,wenxueliu/redis_comment,clamoriniere1A/redis,zhcy/redis,mgk/redis,himoca/redis,ketor/redis,saisai/redis,valdsJohn/redis,iandyh/redis,mattsta/redis,gechong/redis-3.0-annotated,0x55/redis-3.0-annotated,oranagra/redis,kmiku7/redis,citusdata/redis,zy416548283/redis-3.0-annotated,pmem/redis,holstvoogd/redis,h0x91b/redis,mcanthony/redis,pcarrier/redis,janekmi/redis,nilyang/redis-tdd-annotation,MSOpenTech/redis,narma/redis,splitice/redis,mumingv/redis-3.0-annotated,oranagra/redis,GitHubMota/redis,izhoujie/redis,jackyan/redis,seandsky/redis,idning/redis,gilala/hredis,pcarrier/redis,pmem/redis,dreamquster/redis,ReadCode/redis-3.0-annotated,kensou97/redis,zhoudayang/redis,soveran/redis,seppo0010/rlite-server,AplayER/redis,Aaron1992/redis,neomantra/redis,sunheehnus/redis,soveran/redis,maodeyi/redis_lua,itugs/redis,cnbin/redis,jxwr/redis,july2993/redis,taoguan/redis,linfangrong/redis,mverrilli/redis,weizijun/redis,ituncle/redis,sunheehnus/redis,devaos/redis,hgl888/redis,wangyikai/redis,guker/redis,shining-yang/redis,itamarhaber/redis,zhoudayang/redis,Hailei/redis,vincent-vivian-liu/redis,Aliceljm1/redis-3.0-annotated,louisliangjun/redis,hornen/redis,cnbin/redis,ErikDubbelboer/redis,AALEKH/redis,YuraLukashik/redis,alenslan/redis,flashbuckets/redis,AplayER/redis,arijitvt/redis,Sciumo/redis,citusdata/redis,mingyaaaa/redis,j0hnma/hszredis,honestme/redis,xlzhan/redis,mgk/redis,4396/redis,drinkthere/redis-3.0-annotated,YuanZhewei/redis,190235047/redis,tellapart/redis,cloudrain21/redis,twskipper/redis,xuguruogu/redis,iandyh/redis,nnog/redis,valdsJohn/redis,splitice/redis,gechong/redis-3.0-annotated,ctripcorp/redis,saisai/redis,LongXQ/redis,Soledad89/redis,francischan714/redis,hedisdb/hedis,fengshao0907/redis,davidradunz/redis,zhoudayang/redis,alenslan/redis,wuyu201321060203/redis-3.0-annotated,idning/redis,tzq668766/redis-3.0-annotated,gilala/bjredis,supasate/redis,ramonsnir/redis,supasate/redis,huyuezheng/redis,allengaller/redis,atreeyang/redis,nuxeh/redis,healerkx/redis,yuhc/redis-benchmark-enhanced,brg-liuwei/redis,unasm/redis-3.0-annotated,mengzhejin/RedisStudy,wujf/redis,MSOpenTech/redis,splitice/redis,modulexcite/redis,seppo0010/rlite-server,drinkthere/redis-3.0-annotated,oranagra/redis,spinlock/redis,maodeyi/redis_lua,xuguruogu/redis,SyntaxStacks/redis,tjschuck/redis,YuraLukashik/redis,MasahikoSawada/redis,huyuezheng/redis,YongMan/redis,louisliangjun/redis,spearhead-ea/redis,takeshineshiro/redis,weizijun/redis,yybirdcf/learn-redis,moonbingbing/redis-3.0-annotated,elkingtonmcb/redis,MOON-CLJ/redis,clamoriniere1A/redis,z-fork/redis,dayuoba/redis,zhaobo1023/redis-3.0-annotated,neomantra/redis,0x55/redis-3.0-annotated,simplestbest/redis,zhaobo1023/redis-3.0-annotated,RepmujNetsik/redis,a-pavlov/redis,wbailey5/redis,ReadCode/redis-3.0-annotated,duanx/redis,healerkx/redis,zczhuohuo/redis,gilala/hbjredis,charsyam/redis,ErikDubbelboer/redis,Markgorden/redis,zy416548283/redis-3.0-annotated,mverrilli/redis,abhiklodh/redis,xujunhai1991/redis,MasahikoSawada/redis,nilyang/redis-tdd-annotation,PKRoma/redis,jbochi/parallel_redis,mumingv/redis,dreamquster/redis,wenxueliu/redis_comment,hornen/redis,gilala/redis,gongice/redis-3.0-annotated,ofirluzon/redis,thomasdarimont/redis,davidradunz/redis,magastzheng/redis-3.0-annotated,Hailei/redis,twskipper/redis,atreeyang/redis,ouyangkongtong/redis,seppo0010/redis,Sciumo/redis,simplestbest/redis,xujunhai1991/redis,spinlock/redis,HouKangkang/redis-3.0-annotated,gechong/redis-3.0-annotated,arijitvt/redis,universsky/redis,AALEKH/redis,universsky/redis,unasm/redis-3.0-annotated,harrisonfeng/redis,modulexcite/redis,jbochi/parallel_redis,ton31337/redis,weizijun/redis,nnog/redis,ytjiang/redis,ctripcorp/redis,mengyou0304/redis,roth1002/redis,slfs007/mk-redis,fengshao0907/redis,ncopa/redis,duanx/redis,guker/redis,idning/redis,zhiliaoniu/redis,july2993/redis,zguangyu/redis,roth1002/redis,Aaron1992/redis,xujunhai1991/redis,yossigo/redis,gongice/redis-3.0-annotated,z-fork/redis,huangz1990/redis-3.0-annotated,pkdevbox/redis,rouzier/redis,miaoyc1989/redis-3.0-annotated,Aliceljm1/redis-3.0-annotated,shreesundara/redis,msn217/redis-3.0-annotated,wprice/redis,ton31337/redis,gilala/hbjredis,vincent-vivian-liu/redis,SummonY/redis,HouKangkang/redis-3.0-annotated,mengyou0304/redis,YongMan/redis,z-fork/redis,ttuna/msot-redis,gilala/hredis,shshlzh/redis-3.0-annotated,seandsky/redis,soloestoy/redis,universsky/redis,rogerchina/redis,ncopa/redis,timothyohare/3rdPartySrc-redis,pkdevbox/redis,pmem/redis,honestme/redis,Markgorden/redis,mengzhejin/RedisStudy,tanghaodong25/redis,mcanthony/redis,z-fork/redis,OmarQunsul/graph-redis,ouyangkongtong/redis,devaos/redis,a-pavlov/redis,antirez/redis,j0hnma/hszredis,Markgorden/redis,buobao/redis-3.0-annotated,ttuna/msot-redis,MOON-CLJ/redis,clamoriniere1A/redis,kaushik94/redis,saisai/redis,ofirluzon/redis,Aaron1992/redis,jxwr/redis,idning/redis,josiahcarlson/redis,hgl888/redis,blackmady/redis,mgk/redis,ketor/redis,a-pavlov/redis,xuzhezhaozhao/redis_reading,shreesundara/redis,mengzhejin/RedisStudy,elkingtonmcb/redis,twskipper/redis,yossigo/redis,yuhc/redis-benchmark-enhanced,neomantra/redis,wangyikai/redis,blackmady/redis,clamoriniere1A/redis,wujf/redis,supasate/redis,jacklee0810/redis-3.0-annotated,rouzier/redis,elkingtonmcb/redis,flashbuckets/redis,seppo0010/redis,gaoxianglong/redis,GitHubMota/redis,alenslan/redis,adamweixuan/redis-3.0-annotated,soveran/redis,sunlianqiang/redis-3.0-annotated,hgl888/redis,neomantra/redis,spearhead-ea/redis,thomasdarimont/redis,ytjiang/redis,190235047/redis,yybirdcf/learn-redis,Wangyao14cyy/redis,kmiku7/redis,citusdata/redis,allengaller/redis,seppo0010/redis,tanghaodong25/redis,haima-zju/redis-3.0-annotated,fengshao0907/redis-3.0-annotated,ttuna/msot-redis,programmecat/redis,vincent-vivian-liu/redis,nnog/redis,cusspvz/redis,abhiklodh/redis,zhoudayang/redis,fankeke/redis-3.0-annotated,kensou97/redis,PradheepShrinivasan/redis,jacklee0810/redis-3.0-annotated,jbochi/redis,ksarch-saas/redis,AALEKH/redis,universsky/redis,0x55/redis-3.0-annotated,mcanthony/redis,xuguruogu/redis,miaoyc1989/redis-3.0-annotated,huyuezheng/redis,AplayER/redis,cloudrain21/redis,darksideofthemoo/redis-histogram,colstrom/redis,tanghaodong25/redis,ipmobiletech/redis,gilala/bjredis,oranagra/redis,ituncle/redis,nilyang/redis-tdd-annotation,ton31337/redis,mverrilli/redis,ramonsnir/redis,jasonkying/redis,yossigo/redis,NBSW/redis,mattsta/redis