Skip to content

Bug with 64-bit varint encodings #10

@rnburn

Description

@rnburn

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions