mirror of https://github.com/prometheus/prometheus
Update encoding_helpers.go (len of be64 should be 8) (#521)
parent
9f28ffa6f4
commit
109252f3aa
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue