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

Fix hash.Unmarshal when using proto.Unmarshal #1339

Merged
merged 3 commits into from
Sep 16, 2019
Merged

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented Sep 13, 2019

Fix hash.Unmarshal when using proto.Unmarshal.

The problem was data []byte is the same variable with the same address when using proto.Unmarshal.
Using it directly was causing all hashes to be reference the same memory thus the same hash.

Closes #1330

@NicolasMahe NicolasMahe added this to the next milestone Sep 13, 2019
@NicolasMahe NicolasMahe added the release:fix Pull requests that fix something label Sep 13, 2019
@NicolasMahe NicolasMahe self-assigned this Sep 13, 2019
@NicolasMahe NicolasMahe merged commit 8ed2614 into dev Sep 16, 2019
@NicolasMahe NicolasMahe deleted the fix/hash-unmarshal branch September 16, 2019 07:09
@NicolasMahe NicolasMahe mentioned this pull request Sep 16, 2019
@NicolasMahe NicolasMahe modified the milestones: next, v0.14.2 Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix Pull requests that fix something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with duplicated processes
3 participants