fix up some indexing in ParseSignature.
fix up some indexing in ParseSignature.

a test i was working on was crashing this otherwise. Make length checks more
paranoid.

hectorj/btcd,pkothbauer/btcd,jrick/dcrd,Roasbeef/btcd,adiabat/btcd,DanielKrawisz/btcd,mathiasrw/btcd,stevenroose/btcd,tb00/btcd,glv2/ppcd,soapboxsys/ombfullnode,ltcsuite/ltcd,adiabat/btcd,aakselrod/btcd,cjepson/btcd,ppcsuite/ppcd-old,danoctavian/btcd,Stash-Crypto/btcd,hectorj/btcd,toddfries/btcd,danoctavian/btcd,ppcsuite/ppcd-old,dajohi/btcd,Roasbeef/btcd,CryptocurrencyCabal/htcd,decred/dcrd,FactomProject/btcd,jrick/btcd,qchain/btcd,wallclockbuilder/btcd,BitGo/prova,davecgh/btcd,jongillham/btcd,jrick/btcd,stevenroose/btcd,toddfries/btcd,ppcsuite/ppcd,Cleawing/btcd,dan-da/btcd,davecgh/btcd,runeaune/btcd,1d4Nf6/btcd,DanielKrawisz/btcd,wallclockbuilder/btcd,decred/dcrd,jcmincke/dcrd,btcsuite/btcd,jongillham/btcd,Dirbaio/btcd,Cleawing/btcd,ltcsuite/ltcd,1d4Nf6/btcd,dajohi/btcd,glv2/ppcd,dajohi/btcd,runeaune/btcd,tb00/btcd,jimmysong/btcd,cqswxj2013/btcd,jrick/btcd,btcsuite/btcd,jimmysong/btcd,jrick/dcrd,aakselrod/btcd,ppcsuite/ppcd,btcsuitereleases/btcd,Dirbaio/btcd,FactomProject/btcd,jcmincke/dcrd,qchain/btcd,jcmincke/dcrd,pkothbauer/btcd,cqswxj2013/btcd,cjepson/btcd,Stash-Crypto/btcd,BitGo/prova,soapboxsys/ombfullnode,CryptocurrencyCabal/htcd,btcsuitereleases/btcd,mathiasrw/btcd,Dirbaio/btcd,dan-da/btcd