Fixed assert() in mg_read()
Fixed assert() in mg_read()

commshare/civet-webserver,mygittyhubby/free-mongoose,psiniemi/mongoose,serinchu/mongoose,deadmenace/mongoose,ismailfatih/mongoose,pfalcon/mongoose-mit,loveJesus/mongoose,haima-zju/mongoose,starfalling/mongoose,bharath1097/mongoose,AndrewGomes/mongoose,mrwill84/mongoose,172205/mongoose,mmocean/mongoose,tmaguire/mongoose,adamh0807/mongoose,mah007/mongoose,LeeByeongHo/mongoose,gcla/mongoose,lingjiancong/mongoose,asd1355215911/mongoose,olupotd/mongoose,RandallFlagg/mongoose,pentix/mongoose,mrwill84/mongoose,lingjiancong/mongoose,shaobo8910/mongoose,LeeByeongHo/mongoose,ancruna/mongoose,lecion/mongoose,BackupGGCode/mongoose,tencrocs/mongoose,Shaun-duplessis79/mongoose,AndrewGomes/mongoose,nethibernate/mongoose,Killerduty/mongoose,deadmenace/mongoose,bharath1097/mongoose,lecion/mongoose,jaz303/mongoose-mit,natebot13/mongoose,emeric636/mongoose,chesterpolo/mongoose,kuksugen/mongoose,ismailfatih/mongoose,DayBreakZhang/mongoose,tst2005googlecode/mongoose,aata/mongoose,GerHobbelt/civet-webserver,Lofik/mongoose,agenwebtoto/mongoose,hugoprudente/mongoose,mygittyhubby/free-mongoose,kp001/mongoose,LikeLionKDH/mongoose,tedAir/mongoose,lingjiancong/mongoose,ufairiya/mongoose,attilla/mongoose,hugoprudente/mongoose,DayBreakZhang/mongoose,Killerduty/mongoose,yeomann/mongoose,tencrocs/mongoose,anragab/mongoose,yeomann/mongoose,elbuengad/mongoose,evook/mongoose,pfalcon/mongoose-mit,elbuengad/mongoose,AndrewGomes/mongoose,yeomann/mongoose,tstorch/mongoose,deekr/mongoose,pentix/mongoose,mah007/mongoose,shaobo8910/mongoose,Elirudite/mongoose,ancruna/mongoose,evook/mongoose,agenwebtoto/mongoose,gaochunzy/mongoose,agenwebtoto/mongoose,beemoboy/mongoose,haima-zju/mongoose,bl4ckic3/mongoose,aata/mongoose,plan44/libmongoose,attilla/mongoose,anragab/mongoose,Lofik/mongoose,M-Razavi/mongoose,beemoboy/mongoose,aata/mongoose,palaniyappanBala/mongoose,tedAir/mongoose,oldeye/mongoose,funhatch/mongoose,waxmiguelito/mongoose,kissofdarknes/mongoose,tst2005googlecode/mongoose,adamh0807/mongoose,h2ooooooo/mongoose,cloudtrends/mongoose,mmocean/mongoose,thamagates/mongoose,michaelarmstrong/mongoose,gaochunzy/mongoose,ruslansk/mongoose,chinab/mongoose,waxmiguelito/mongoose,BackupGGCode/mongoose,nrmmota/mongoose,anragab/mongoose,nrmmota/mongoose,shaobo8910/mongoose,LeeByeongHo/mongoose,cloudtrends/mongoose,wachub/mongoose,frankschmidt2377/mongoose,kiss9815/mongoose,cuongphphanoi/mongoose,ancruna/mongoose,mmocean/mongoose,codushlaine/mongoose,tst2005googlecode/mongoose,gaochunzy/mongoose,BackupGGCode/mongoose,adamh0807/mongoose,rgbkrk/mongoose,ndesktop/mongoose,chyland/Meerkat,frankschmidt2377/mongoose,bl4ckic3/mongoose,frankschmidt2377/mongoose,agenwebtoto/mongoose,deadmenace/mongoose,funhatch/mongoose,bl4ckic3/mongoose,mrwill84/mongoose,BackupGGCode/mongoose,joswa/mongoose,ndesktop/mongoose,mygittyhubby/free-mongoose,RandallFlagg/mongoose,natebot13/mongoose,stabAhead/mongoose,adamh0807/mongoose,gaochunzy/mongoose,chinab/mongoose,ranxian/mongoose,ismailfatih/mongoose,codushlaine/mongoose,Letractively/mongoose,Letractively/mongoose,psiniemi/mongoose,frankschmidt2377/mongoose,Shaun-duplessis79/mongoose,funhatch/mongoose,bharath1097/mongoose,anragab/mongoose,LeeByeongHo/mongoose,ranxian/mongoose,codushlaine/mongoose,joswa/mongoose,plan44/libmongoose,kiss9815/mongoose,aata/mongoose,172205/mongoose,gihyun/mongoose,cloudtrends/mongoose,txdowty/mongoose,rgfernandes/mongoose,brockn/squeasel,hauke/mongoose,joswa/mongoose,Elirudite/mongoose,commshare/civet-webserver,ufairiya/mongoose,gaochunzy/mongoose,zzuzjl/mongoose,recycled-air/mongoose,ndesktop/mongoose,zzuzjl/mongoose,chinab/mongoose,Shaun-duplessis79/mongoose,funhatch/mongoose,pfalcon/mongoose-mit,dabomb1004/mongoose,deadmenace/mongoose,GerHobbelt/civet-webserver,michaelarmstrong/mongoose,LeeByeongHo/mongoose,Lofik/mongoose,pfalcon/mongoose-mit,kissofdarknes/mongoose,BurgyDev/mongoose,pfalcon-mirrors/mongoose-mit,oldeye/mongoose,deadmenace/mongoose,bl4ckic3/mongoose,ranxian/mongoose,txdowty/mongoose,hugoprudente/mongoose,172205/mongoose,GerHobbelt/civet-webserver,ruslansk/mongoose,Archon-/mongoose,palaniyappanBala/mongoose,serinchu/mongoose,M-Razavi/mongoose,zzuzjl/mongoose,michaelarmstrong/mongoose,bl4ckic3/mongoose,attilla/mongoose,wachub/mongoose,joeinfo888/mongoose,GerHobbelt/civet-webserver,h2ooooooo/mongoose,chesterpolo/mongoose,waxmiguelito/mongoose,asd1355215911/mongoose,dabomb1004/mongoose,mygittyhubby/free-mongoose,mulle-nat/mongoose,danburkert/squeasel,kuksugen/mongoose,mmocean/mongoose,sc0ttj/mongoose,kp001/mongoose,aata/mongoose,Lofik/mongoose,Archon-/mongoose,asd1355215911/mongoose,hugoprudente/mongoose,fb39ca4/mongoose,recycled-air/mongoose,joeinfo888/mongoose,michaelarmstrong/mongoose,kp001/mongoose,daokoder/Marten,h2ooooooo/mongoose,danburkert/squeasel,starfalling/mongoose,joswa/mongoose,recycled-air/mongoose,martindonofrio/mongoose,Serge78rus/mongoose,asd1355215911/mongoose,Rohit214/mongoose,M-Razavi/mongoose,kyj4795/mongoose,asd1355215911/mongoose,olupotd/mongoose,frankschmidt2377/mongoose,gaochunzy/mongoose,gihyun/mongoose,loveJesus/mongoose,ufairiya/mongoose,mah007/mongoose,Serge78rus/mongoose,yeomann/mongoose,rgbkrk/mongoose,lecion/mongoose,tmaguire/mongoose,h2ooooooo/mongoose,palaniyappanBala/mongoose,mygittyhubby/free-mongoose,tedAir/mongoose,deadmenace/mongoose,emeric636/mongoose,joeinfo888/mongoose,oldeye/mongoose,kp001/mongoose,chyland/Meerkat,kiss9815/mongoose,RandallFlagg/mongoose,codushlaine/mongoose,shaobo8910/mongoose,merona/mongoose,martindonofrio/mongoose,gcla/mongoose,jiltednut/mongoose,AndrewGomes/mongoose,Rohit214/mongoose,lecion/mongoose,joeinfo888/mongoose,AndrewGomes/mongoose,pfalcon-mirrors/mongoose-mit,jiltednut/mongoose,kiss9815/mongoose,bharath1097/mongoose,hauke/mongoose,stabAhead/mongoose,ancruna/mongoose,Serge78rus/mongoose,LikeLionKDH/mongoose,ndesktop/mongoose,codushlaine/mongoose,emeric636/mongoose,cuongphphanoi/mongoose,Archon-/mongoose,M-Razavi/mongoose,Serge78rus/mongoose,BackupGGCode/mongoose,oldeye/mongoose,hugoprudente/mongoose,172205/mongoose,evook/mongoose,lingjiancong/mongoose,martindonofrio/mongoose,recycled-air/mongoose,kissofdarknes/mongoose,gihyun/mongoose,danburkert/squeasel,thamagates/mongoose,mygittyhubby/free-mongoose,shaobo8910/mongoose,codushlaine/mongoose,jiltednut/mongoose,Elirudite/mongoose,sc0ttj/mongoose,tmaguire/mongoose,tstorch/mongoose,Elirudite/mongoose,LikeLionKDH/mongoose,mygittyhubby/free-mongoose,txdowty/mongoose,daokoder/Marten,elbuengad/mongoose,nethibernate/mongoose,recycled-air/mongoose,rgbkrk/mongoose,dabomb1004/mongoose,Serge78rus/mongoose,tmaguire/mongoose,evook/mongoose,ndesktop/mongoose,630543057/mongoose,brockn/squeasel,danburkert/squeasel,kissofdarknes/mongoose,plan44/libmongoose,cuongphphanoi/mongoose,starfalling/mongoose,mulle-nat/mongoose,kyj4795/mongoose,Shaun-duplessis79/mongoose,attilla/mongoose,deadmenace/mongoose,starfalling/mongoose,kissofdarknes/mongoose,Rohit214/mongoose,BurgyDev/mongoose,DayBreakZhang/mongoose,mmocean/mongoose,pentix/mongoose,Letractively/mongoose,rgbkrk/mongoose,Rohit214/mongoose,olupotd/mongoose,bharath1097/mongoose,kelemenbalazs/mongoose,jaz303/mongoose-mit,stabAhead/mongoose,pentix/mongoose,kelemenbalazs/mongoose,agenwebtoto/mongoose,funhatch/mongoose,pfalcon-mirrors/mongoose-mit,loveJesus/mongoose,rgfernandes/mongoose,tstorch/mongoose,rgfernandes/mongoose,mrwill84/mongoose,Archon-/mongoose,merona/mongoose,natebot13/mongoose,h2ooooooo/mongoose,Archon-/mongoose,BackupGGCode/mongoose,txdowty/mongoose,daokoder/Marten,M-Razavi/mongoose,M-Razavi/mongoose,Lofik/mongoose,jreidthompson/mongoose,ranxian/mongoose,deekr/mongoose,Rohit214/mongoose,ndesktop/mongoose,UCSD-PL/csolve-webserver,hauke/mongoose,natebot13/mongoose,jiltednut/mongoose,mrwill84/mongoose,olupotd/mongoose,pfalcon-mirrors/mongoose-mit,tedAir/mongoose,jaz303/mongoose-mit,slachiewicz/mongoose,ufairiya/mongoose,brockn/squeasel,lingjiancong/mongoose,anragab/mongoose,jiltednut/mongoose,fajsid/mongoose,hanminhee/mongoose,fajsid/mongoose,ruslansk/mongoose,tst2005googlecode/mongoose,kelemenbalazs/mongoose,jiltednut/mongoose,Rohit214/mongoose,asd1355215911/mongoose,tencrocs/mongoose,slachiewicz/mongoose,loveJesus/mongoose,ismailfatih/mongoose,hauke/mongoose,commshare/civet-webserver,tstorch/mongoose,psiniemi/mongoose,ruslansk/mongoose,kissofdarknes/mongoose,psiniemi/mongoose,nrmmota/mongoose,hauke/mongoose,Rohit214/mongoose,codushlaine/mongoose,thamagates/mongoose,ancruna/mongoose,DayBreakZhang/mongoose,LikeLionKDH/mongoose,jreidthompson/mongoose,ufairiya/mongoose,DayBreakZhang/mongoose,deekr/mongoose,Shaun-duplessis79/mongoose,hauke/mongoose,Letractively/mongoose,merona/mongoose,brockn/squeasel,daokoder/Marten,commshare/civet-webserver,danburkert/squeasel,haima-zju/mongoose,Sinisteryu/mongoose,bharath1097/mongoose,chinab/mongoose,yeomann/mongoose,kuksugen/mongoose,palaniyappanBala/mongoose,fb39ca4/mongoose,wachub/mongoose,Sinisteryu/mongoose,kyj4795/mongoose,martindonofrio/mongoose,fb39ca4/mongoose,haima-zju/mongoose,hanminhee/mongoose,natebot13/mongoose,palaniyappanBala/mongoose,tst2005googlecode/mongoose,kissofdarknes/mongoose,emeric636/mongoose,ismailfatih/mongoose,chyland/Meerkat,waxmiguelito/mongoose,daokoder/Marten,wachub/mongoose,ranxian/mongoose,kyj4795/mongoose,beemoboy/mongoose,dabomb1004/mongoose,Elirudite/mongoose,ruslansk/mongoose,hanminhee/mongoose,gcla/mongoose,kuksugen/mongoose,shaobo8910/mongoose,asd1355215911/mongoose,mmocean/mongoose,tmaguire/mongoose,tencrocs/mongoose,yhk1038/mongoose,mulle-nat/mongoose,adamh0807/mongoose,chyland/Meerkat,AndrewGomes/mongoose,zzuzjl/mongoose,gcla/mongoose,Killerduty/mongoose,h2ooooooo/mongoose,cuongphphanoi/mongoose,Killerduty/mongoose,nrmmota/mongoose,GerHobbelt/civet-webserver,olupotd/mongoose,ruslansk/mongoose,LikeLionKDH/mongoose,yhk1038/mongoose,rgfernandes/mongoose,172205/mongoose,mrwill84/mongoose,kp001/mongoose,brockn/squeasel,nrmmota/mongoose,michaelarmstrong/mongoose,slachiewicz/mongoose,BurgyDev/mongoose,yhk1038/mongoose,deekr/mongoose,DayBreakZhang/mongoose,Elirudite/mongoose,pentix/mongoose,wachub/mongoose,gcla/mongoose,kyj4795/mongoose,rgbkrk/mongoose,haima-zju/mongoose,olupotd/mongoose,elbuengad/mongoose,agenwebtoto/mongoose,hugoprudente/mongoose,commshare/civet-webserver,UCSD-PL/csolve-webserver,merona/mongoose,plan44/libmongoose,gihyun/mongoose,commshare/civet-webserver,Elirudite/mongoose,Sinisteryu/mongoose,630543057/mongoose,Shaun-duplessis79/mongoose,nethibernate/mongoose,elbuengad/mongoose,martindonofrio/mongoose,kuksugen/mongoose,BackupGGCode/mongoose,Shaun-duplessis79/mongoose,yhk1038/mongoose,evook/mongoose,nethibernate/mongoose,slachiewicz/mongoose,brockn/squeasel,fb39ca4/mongoose,plan44/libmongoose,pfalcon/mongoose-mit,Archon-/mongoose,tencrocs/mongoose,emeric636/mongoose,stabAhead/mongoose,agenwebtoto/mongoose,beemoboy/mongoose,stabAhead/mongoose,serinchu/mongoose,loveJesus/mongoose,DayBreakZhang/mongoose,kiss9815/mongoose,cuongphphanoi/mongoose,danburkert/squeasel,M-Razavi/mongoose,pfalcon-mirrors/mongoose-mit,kelemenbalazs/mongoose,emeric636/mongoose,tstorch/mongoose,slachiewicz/mongoose,oldeye/mongoose,jiltednut/mongoose,cloudtrends/mongoose,starfalling/mongoose,tst2005googlecode/mongoose,AndrewGomes/mongoose,jreidthompson/mongoose,ufairiya/mongoose,tst2005googlecode/mongoose,shaobo8910/mongoose,ruslansk/mongoose,thamagates/mongoose,Letractively/mongoose,Archon-/mongoose,thamagates/mongoose,olupotd/mongoose,ancruna/mongoose,yhk1038/mongoose,commshare/civet-webserver,hanminhee/mongoose,tedAir/mongoose,cloudtrends/mongoose,fajsid/mongoose,ndesktop/mongoose,UCSD-PL/csolve-webserver,palaniyappanBala/mongoose,deekr/mongoose,RandallFlagg/mongoose,chesterpolo/mongoose,Sinisteryu/mongoose,hanminhee/mongoose,daokoder/Marten,630543057/mongoose,sc0ttj/mongoose,mulle-nat/mongoose,cloudtrends/mongoose,mah007/mongoose,serinchu/mongoose,slachiewicz/mongoose,UCSD-PL/csolve-webserver,palaniyappanBala/mongoose,daokoder/Marten,rgfernandes/mongoose,jaz303/mongoose-mit,emeric636/mongoose,txdowty/mongoose,deekr/mongoose,chesterpolo/mongoose,dabomb1004/mongoose,waxmiguelito/mongoose,fb39ca4/mongoose,Killerduty/mongoose,BurgyDev/mongoose,630543057/mongoose,adamh0807/mongoose,plan44/libmongoose,GerHobbelt/civet-webserver,RandallFlagg/mongoose,mah007/mongoose,gihyun/mongoose,sc0ttj/mongoose,chyland/Meerkat,cloudtrends/mongoose,evook/mongoose,lecion/mongoose,jreidthompson/mongoose,Sinisteryu/mongoose,630543057/mongoose,serinchu/mongoose,UCSD-PL/csolve-webserver,deekr/mongoose,slachiewicz/mongoose,joswa/mongoose,sc0ttj/mongoose,nethibernate/mongoose,chesterpolo/mongoose,waxmiguelito/mongoose,bharath1097/mongoose,gaochunzy/mongoose,natebot13/mongoose,BurgyDev/mongoose,jaz303/mongoose-mit,mulle-nat/mongoose,adamh0807/mongoose,Lofik/mongoose,beemoboy/mongoose,thamagates/mongoose,h2ooooooo/mongoose,mrwill84/mongoose,waxmiguelito/mongoose,fajsid/mongoose,chinab/mongoose,psiniemi/mongoose,joeinfo888/mongoose,chyland/Meerkat,ancruna/mongoose,mmocean/mongoose,hugoprudente/mongoose,thamagates/mongoose,jaz303/mongoose-mit,natebot13/mongoose,jreidthompson/mongoose,Lofik/mongoose,zzuzjl/mongoose,fajsid/mongoose,merona/mongoose,kelemenbalazs/mongoose,ufairiya/mongoose,evook/mongoose,attilla/mongoose