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

pull/5805/head
Alec 2019-02-13 17:04:21 +08:00 committed by Krasi Georgiev
parent 9f28ffa6f4
commit 109252f3aa
1 changed files with 1 additions and 1 deletions

View File

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