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

[Spec] Relax LEB128 decoding #79

Merged
merged 3 commits into from
Aug 13, 2020
Merged

[Spec] Relax LEB128 decoding #79

merged 3 commits into from
Aug 13, 2020

Conversation

chenyan-dfinity
Copy link
Contributor

@chenyan-dfinity chenyan-dfinity commented Aug 13, 2020

As discussed in #73 (comment), LEB128 spec allows redundant bytes, and all existing libraries on LEB128 decodes redundant bytes properly. Removing the restriction encourages code reuse and an easier implementation.

@nomeata
Copy link
Collaborator

nomeata commented Aug 13, 2020

I'll have to update http://hackage.haskell.org/package/leb128-cereal and the Motoko implemenation, but that’s fine of course.

@chenyan-dfinity care to update the spec tests together with this PR?

@nomeata
Copy link
Collaborator

nomeata commented Aug 31, 2020

Why did we not bump the Candid version with this PR?

@chenyan-dfinity
Copy link
Contributor Author

chenyan-dfinity commented Aug 31, 2020

I was going to bump the version here #88. The change is documented in the Changelog.md already.

mergify bot pushed a commit to dfinity/motoko that referenced this pull request Sep 2, 2020
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.

3 participants