Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with 64-bit varint encodings #10

Open
rnburn opened this issue Oct 12, 2021 · 0 comments
Open

Bug with 64-bit varint encodings #10

rnburn opened this issue Oct 12, 2021 · 0 comments
Assignees

Comments

@rnburn
Copy link

rnburn commented Oct 12, 2021

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

@negasus negasus self-assigned this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants