haproxy-spoe-go icon indicating copy to clipboard operation
haproxy-spoe-go copied to clipboard

Bug with 64-bit varint encodings

Open rnburn opened this issue 4 years ago • 0 comments

The buffer created here

buf = append(buf, TypeInt64)
b := make([]byte, 8)
i := varint.PutUvarint(b, uint64(v))

Isn't big enough for 64-bit integers (which can take up to 10 bytes when encoded as varints).

rnburn avatar Oct 12 '21 02:10 rnburn