From 109252f3aa66b954d237978b5fac7a4e57edf4da Mon Sep 17 00:00:00 2001 From: Alec <867245430@qq.com> Date: Wed, 13 Feb 2019 17:04:21 +0800 Subject: [PATCH] Update encoding_helpers.go (len of be64 should be 8) (#521) --- index/encoding_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/encoding_helpers.go b/index/encoding_helpers.go index a06b31416..1ed130158 100644 --- a/index/encoding_helpers.go +++ b/index/encoding_helpers.go @@ -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 }