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

Correct decoding of "dynamic" objects. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

remyoudompheng
Copy link

Dynamic objects end with an empty string. The current code for reading empty strings will fail at the end of a bytes.Reader, which is a typical use case (including unit tests).

Rémy Oudompheng added 2 commits October 8, 2017 21:19
This scenario typically happens when decoding a dynamic Object.
The reader is allowed to return an EOF error in such a case, which
should not be considered as a failure.
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

Successfully merging this pull request may close these issues.

None yet

1 participant