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

binary: expose overflow error #43538

Open
pascaldekloe opened this issue Jan 6, 2021 · 0 comments
Open

binary: expose overflow error #43538

pascaldekloe opened this issue Jan 6, 2021 · 0 comments

Comments

@pascaldekloe
Copy link
Contributor

@pascaldekloe pascaldekloe commented Jan 6, 2021

At the moment it is not possible to distinguish I/O errors from encoding errors with binary.ReadUvarint and binary.ReadVarint. The documentation could mention that an overflow is the only encoding error option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants