Bugfix: Fix possible buffer overflow (#901)
Bugfix: Fix possible buffer overflow (#901)

Upstream commit: 21ae37d (partial)

sigmike/peercoin,Peerunity/Peerunity,FuzzyBearBTC/Peerunity,Ziftr/ppcoin,IOCoin/DIONS,CoinGame/BCEShadowNet,AquariusNetwork/ARCOv2,iadix/iadixcoin,TheoremCrypto/TheoremCoin,xranby/blackcoin,phorensic/yacoin,etercoin/etercoin,landcoin-ldc/landcoin,benzhi888/renminbi,dopecoin-dev/DopeCoinGold,5mil/Bolt,sigmike/peercoin,FuzzyBearBTC/Peershares,DigitalPandacoin/pandacoin,lordsajan/erupee,senadj/yacoin,valorbit/valorbit-oss,pocopoco/yacoin,Crypto-Currency/BitBar,CoinBlack/blackcoin,slimcoin-project/Slimcoin,MoMoneyMonetarism/ppcoin,shadowproject/shadow,thunderrabbit/clams,robvanmieghem/clams,stamhe/novacoin,Peerunity/Peerunity,fsb4000/novacoin,ForceMajeure/BitPenny-Client,MoMoneyMonetarism/ppcoin,Jheguy2/Mercury,IOCoin/iocoin,lentza/SuperTurboStake,palm12341/jnc,benzhi888/renminbi,glv2/peerunity,som4paul/BolieC,MOIN/moin,fsb4000/novacoin,elambert2014/novacoin,snakie/ppcoin,redfish64/nomiccoin,glv2/peerunity,valorbit/valorbit,vizidrixfork/Peershares,elambert2014/cbx2,FuzzyBearBTC/Fuzzyshares,glv2/peerunity,ForceMajeure/BitPenny-Client,vectorcoindev/Vector,vectorcoindev/Vector,MOIN/moin,TheoremCrypto/TheoremCoin,FuzzyBearBTC/Peershares,stamhe/novacoin,snakie/ppcoin,lordsajan/erupee,peerdb/cors,CoinBlack/bitcoin,LanaCoin/lanacoin,iadix/iadixcoin,Jheguy2/Mercury,shadowproject/shadow,SproutsEx/SproutsExtreme,valorbit/valorbit-oss,byncoin-project/byncoin,jyap808/jumbucks,MoMoneyMonetarism/ppcoin,byncoin-project/byncoin,ghostlander/Orbitcoin,neureal/noocoin,bitgrowchain/bitgrow,internaut-me/ppcoin,valorbit/valorbit,FuzzyBearBTC/Peershares2,Whitecoin-org/Whitecoin,gorgoy/novacoin,som4paul/BolieC,effectsToCause/vericoin,elambert2014/cbx2,FuzzyBearBTC/Peershares,GeopaymeEE/e-goldcoin,etercoin/etercoin,iadix/iadixcoin,GeopaymeEE/e-goldcoin,shadowproject/shadow,penek/novacoin,peercoin/peercoin,robvanmieghem/clams,IOCoin/iocoin,fsb4000/novacoin,yacoin/yacoin,novacoin-project/novacoin,gfneto/Peershares,coinkeeper/2015-06-22_18-45_peercoin,IOCoin/iocoin,vizidrixfork/Peershares,Peerapps/ppcoin,Whitecoin-org/Whitecoin,lordsajan/erupee,xranby/blackcoin,okcashpro/okcash,slimcoin-project/Slimcoin,CoinBlack/bitcoin,jlay11/sharecoin,blackcoinhelp/blackcoin,elambert2014/cbx2,coinkeeper/2015-06-22_18-45_peercoin,senadj/yacoin,elambert2014/cbx2,greencoin-dev/GreenCoinV2,gades/novacoin,LanaCoin/lanacoin,CoinBlack/bitcoin,dopecoin-dev/DopeCoinGold,greencoin-dev/GreenCoinV2,TheoremCrypto/TheoremCoin,prodigal-son/blackcoin,nochowderforyou/clams,CoinBlack/blackcoin,coinkeeper/2015-06-22_18-45_peercoin,effectsToCause/vericoin,CoinGame/BCEShadowNet,GeopaymeEE/e-goldcoin,penek/novacoin,FuzzyBearBTC/Peerunity,iceinsidefire/peershare-edit,elambert2014/novacoin,BlueMeanie/PeerShares,Jheguy2/Mercury,stronghands/stronghands,pinkmagicdev/SwagBucks,TurboStake/TurboStake,TurboStake/TurboStake,internaut-me/ppcoin,elcrypto/Pulse,FuzzyBearBTC/peercoin,IOCoin/iocoin,Someguy123/novafoil,Stakemaker/OMFGcoin,ppcoin/ppcoin,jyap808/jumbucks,effectsToCause/vericoin,redfish64/nomiccoin,lordsajan/erupee,xranby/blackcoin,CoinGame/BCEShadow,DigitalPandacoin/pandacoin,jlay11/sharecoin,penek/novacoin,AquariusNetwork/ARCOv2,Rimbit/Wallets,LanaCoin/lanacoin,SproutsEx/SproutsExtreme,ForceMajeure/BitPenny-Client,Peerapps/ppcoin,neureal/noocoin,BlueMeanie/PeerShares,DigitalPandacoin/pandacoin,ghostlander/Testcoin,penek/novacoin,IOCoin/DIONS,snakie/ppcoin,stronghands/stronghands,Jheguy2/Mercury,sproutcoin/sprouts,Kefkius/clams,5mil/Bolt,sproutcoin/sprouts,lordsajan/erupee,FuzzyBearBTC/Peershares,IOCoin/DIONS,pocopoco/yacoin,redfish64/nomiccoin,5mil/SuperTurboStake,Peerunity/Peerunity,stamhe/novacoin,Crypto-Currency/BitBar,effectsToCause/vericoin,CoinGame/BCEShadow,Stakemaker/OMFGcoin,Ziftr/ppcoin,gades/novacoin,Ziftr/ppcoin,IOCoin/DIONS,pinkmagicdev/SwagBucks,yacoin/yacoin,Ziftr/ppcoin,daeMOn63/Peershares,AquariusNetwork/ARCOv2,Someguy123/novafoil,FuzzyBearBTC/Fuzzyshares,BlueMeanie/PeerShares,stamhe/ppcoin,SproutsEx/SproutsExtreme,iadix/iadixcoin,CoinBlack/bitcoin,benzhi888/renminbi,CoinGame/BCEShadow,CoinBlack/bitcoin,peercoin/peercoin,CoinBlack/blackcoin,rat4/blackcoin,TheSeven/ppcoin,peerdb/cors,senadj/yacoin,gfneto/Peershares,fsb4000/novacoin,rat4/blackcoin,CoinGame/BCEShadow,BlueMeanie/PeerShares,valorbit/valorbit-oss,FuzzyBearBTC/Peershares-1,Rimbit/Wallets,redfish64/nomiccoin,Peerapps/ppcoin,Magicking/neucoin,ghostlander/Orbitcoin,lateminer/DopeCoinGold,iceinsidefire/peershare-edit,peerdb/cors,VsyncCrypto/Vsync,Peershares/Peershares,phorensic/yacoin,iadix/iadixcoin,sigmike/peercoin,pocopoco/yacoin,LanaCoin/lanacoin,ALEXIUMCOIN/alexium,Peershares/Peershares,CoinGame/NuShadowNet,redfish64/nomiccoin,senadj/yacoin,elambert2014/novacoin,robvanmieghem/clams,peercoin/peercoin,vectorcoindev/Vector,elcrypto/Pulse,slimcoin-project/Slimcoin,slimcoin-project/Slimcoin,gorgoy/novacoin,AquariusNetwork/ARCO,jyap808/jumbucks,elcrypto/Pulse,VsyncCrypto/Vsync,Stakemaker/OMFGcoin,slimcoin-project/Slimcoin,BeirdoMud/MudCoin,glv2/peerunity,okcashpro/okcash,AquariusNetwork/ARCO,CoinBlack/blackcoin,FuzzyBearBTC/Peershares2,Magicking/neucoin,byncoin-project/byncoin,stamhe/novacoin,BeirdoMud/MudCoin,peerdb/cors,dooglus/clams,daeMOn63/Peershares,dopecoin-dev/DopeCoinGold,lordsajan/erupee,prodigal-son/blackcoin,blackcoinhelp/blackcoin,MoMoneyMonetarism/ppcoin,elambert2014/novacoin,Jheguy2/Mercury,lentza/SuperTurboStake,FuzzyBearBTC/Fuzzyshares,iceinsidefire/peershare-edit,thunderrabbit/clams,Kefkius/clams,thunderrabbit/clams,ppcoin/ppcoin,Rimbit/Wallets,CoinGame/NuShadowNet,FuzzyBearBTC/Peershares2,ppcoin/ppcoin,jashandeep-sohi/ppcoin,prodigal-son/blackcoin,d5000/ppcoin,MOIN/moin,rat4/blackcoin,jashandeep-sohi/ppcoin,rat4/blackcoin,iadix/iadixcoin,valorbit/valorbit,senadj/yacoin,Someguy123/novafoil,som4paul/BolieC,IOCoin/iocoin,SproutsEx/SproutsExtreme,Action-Committee/Spaceballz,gorgoy/novacoin,FuzzyBearBTC/peercoin,landcoin-ldc/landcoin,ya4-old-c-coder/yacoin,FuzzyBearBTC/Peershares-1,ppcoin/ppcoin,ALEXIUMCOIN/alexium,nochowderforyou/clams,GeopaymeEE/e-goldcoin,jyap808/jumbucks,novacoin-project/novacoin,greencoin-dev/GreenCoinV2,lentza/SuperTurboStake,5mil/Bolt,neureal/noocoin,gfneto/Peershares,Peerapps/ppcoin,CoinGame/NuShadowNet,blackcoinhelp/blackcoin,pinkmagicdev/SwagBucks,Stakemaker/OMFGcoin,elcrypto/Pulse,CoinGame/BCEShadowNet,xranby/blackcoin,Ziftr/Peerunity,TheSeven/ppcoin,blackcoinhelp/blackcoin,peercoin/peercoin,CoinBlack/blackcoin,ya4-old-c-coder/yacoin,AquariusNetwork/ARCOv2,vizidrixfork/Peershares,AquariusNetwork/ARCO,dopecoin-dev/DopeCoinGold,VsyncCrypto/Vsync,etercoin/etercoin,yacoin/yacoin,Action-Committee/Spaceballz,okcashpro/okcash,CoinGame/BCEShadow,CoinBlack/bitcoin,byncoin-project/byncoin,ya4-old-c-coder/yacoin,AquariusNetwork/ARCO,bitgrowchain/bitgrow,sigmike/peercoin,Action-Committee/Spaceballz,fsb4000/novacoin,TheSeven/ppcoin,daeMOn63/Peershares,Rimbit/Wallets,iadix/iadixcoin,NeuCoin/neucoin,vectorcoindev/Vector,coinkeeper/2015-06-22_18-45_peercoin,IOCoin/DIONS,Ziftr/ppcoin,ALEXIUMCOIN/alexium,daeMOn63/Peershares,gades/novacoin,thunderrabbit/clams,FuzzyBearBTC/peercoin,ghostlander/Testcoin,palm12341/jnc,robvanmieghem/clams,landcoin-ldc/landcoin,valorbit/valorbit,TheSeven/ppcoin,thodg/ppcoin,Someguy123/novafoil,CoinGame/BCEShadowNet,thodg/ppcoin,Whitecoin-org/Whitecoin,nochowderforyou/clams,ya4-old-c-coder/yacoin,slimcoin-project/Slimcoin,byncoin-project/byncoin,d5000/ppcoin,d5000/ppcoin,FuzzyBearBTC/peercoin,greencoin-dev/GreenCoinV2,jashandeep-sohi/ppcoin,Crypto-Currency/BitBar,DigitalPandacoin/pandacoin,BlueMeanie/PeerShares,bitgrowchain/bitgrow,ghostlander/Orbitcoin,dooglus/clams,jlay11/sharecoin,landcoin-ldc/landcoin,DigitalPandacoin/pandacoin,shadowproject/shadow,jlay11/sharecoin,landcoin-ldc/landcoin,CoinGame/BCEShadowNet,Peershares/Peershares,nochowderforyou/clams,palm12341/jnc,lateminer/DopeCoinGold,jlay11/sharecoin,FuzzyBearBTC/Peerunity,palm12341/jnc,thodg/ppcoin,MOIN/moin,Magicking/neucoin,daeMOn63/Peershares,neureal/noocoin,pinkmagicdev/SwagBucks,etercoin/etercoin,Crypto-Currency/BitBar,etercoin/etercoin,NeuCoin/neucoin,valorbit/valorbit-oss,ghostlander/Testcoin,peercoin/peercoin,stamhe/novacoin,d5000/ppcoin,5mil/SuperTurboStake,greencoin-dev/GreenCoinV2,nochowderforyou/clams,FuzzyBearBTC/Peershares2,ALEXIUMCOIN/alexium,TurboStake/TurboStake,shadowproject/shadow,Whitecoin-org/Whitecoin,pocopoco/yacoin,snakie/ppcoin,ForceMajeure/BitPenny-Client,thodg/ppcoin,lordsajan/erupee,GeopaymeEE/e-goldcoin,MoMoneyMonetarism/ppcoin,FuzzyBearBTC/Peershares-1,FuzzyBearBTC/Peershares-1,gades/novacoin,TheoremCrypto/TheoremCoin,bitgrowchain/bitgrow,rat4/blackcoin,effectsToCause/vericoin,valorbit/valorbit-oss,phorensic/yacoin,novacoin-project/novacoin,Magicking/neucoin,iadix/iadixcoin,AquariusNetwork/ARCOv2,penek/novacoin,jashandeep-sohi/ppcoin,BeirdoMud/MudCoin,pocopoco/yacoin,shadowproject/shadow,novacoin-project/novacoin,okcashpro/okcash,blackcoinhelp/blackcoin,gfneto/Peershares,CoinGame/NuShadowNet,benzhi888/renminbi,internaut-me/ppcoin,Ziftr/Peerunity,DigitalPandacoin/pandacoin,elambert2014/novacoin,elambert2014/novacoin,FuzzyBearBTC/Peershares-1,gorgoy/novacoin,elambert2014/cbx2,FuzzyBearBTC/Peershares2,peercoin/peercoin,Peerunity/Peerunity,lentza/SuperTurboStake,dopecoin-dev/DopeCoinGold,Kefkius/clams,VsyncCrypto/Vsync,IOCoin/DIONS,LanaCoin/lanacoin,FuzzyBearBTC/Fuzzyshares,dooglus/clams,jyap808/jumbucks,dooglus/clams,Peershares/Peershares,phorensic/yacoin,penek/novacoin,iadix/iadixcoin,palm12341/jnc,stronghands/stronghands,novacoin-project/novacoin,ghostlander/Testcoin,AquariusNetwork/ARCO,NeuCoin/neucoin,Ziftr/Peerunity,dooglus/clams,benzhi888/renminbi,stronghands/stronghands,som4paul/BolieC,IOCoin/DIONS,redfish64/nomiccoin,lateminer/DopeCoinGold,yacoin/yacoin,TheSeven/ppcoin,lentza/SuperTurboStake,gades/novacoin,prodigal-son/blackcoin,Ziftr/Peerunity,phorensic/yacoin,thodg/ppcoin,5mil/SuperTurboStake,vectorcoindev/Vector,stamhe/ppcoin,thunderrabbit/clams,VsyncCrypto/Vsync,lordsajan/erupee,ya4-old-c-coder/yacoin,Action-Committee/Spaceballz,okcashpro/okcash,Rimbit/Wallets,BeirdoMud/MudCoin,Kefkius/clams,peerdb/cors,Kefkius/clams,robvanmieghem/clams,prodigal-son/blackcoin,5mil/SuperTurboStake,MOIN/moin,stamhe/ppcoin,ghostlander/Orbitcoin,lateminer/DopeCoinGold,byncoin-project/byncoin,iceinsidefire/peershare-edit,internaut-me/ppcoin,NeuCoin/neucoin,sigmike/peercoin,FuzzyBearBTC/Peerunity,Whitecoin-org/Whitecoin,fsb4000/novacoin,iadix/iadixcoin,vizidrixfork/Peershares,sproutcoin/sprouts,stamhe/ppcoin,yacoin/yacoin,FuzzyBearBTC/Peershares,IOCoin/DIONS,ALEXIUMCOIN/alexium,valorbit/valorbit,novacoin-project/novacoin,5mil/Bolt,pinkmagicdev/SwagBucks,ghostlander/Orbitcoin,TurboStake/TurboStake,CoinGame/NuShadowNet,peerdb/cors,lateminer/DopeCoinGold,MOIN/moin,jlay11/sharecoin,gorgoy/novacoin,iadix/iadixcoin,som4paul/BolieC,sproutcoin/sprouts,okcashpro/okcash,gades/novacoin,TheoremCrypto/TheoremCoin