mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Update encoding_helpers.go (len of be64 should be 8) (#521)
This commit is contained in:
parent
9f28ffa6f4
commit
109252f3aa
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue