Update encoding_helpers.go (len of be64 should be 8) (#521)

This commit is contained in:
Alec 2019-02-13 17:04:21 +08:00 committed by Krasi Georgiev
parent 9f28ffa6f4
commit 109252f3aa

View file

@ -191,7 +191,7 @@ func (d *decbuf) be64() uint64 {
if d.e != nil {
return 0
}
if len(d.b) < 4 {
if len(d.b) < 8 {
d.e = errInvalidSize
return 0
}