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 async calculation leading to wrong hash #19

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

h33p
Copy link
Contributor

@h33p h33p commented Aug 2, 2023

buf in async_calc would not get cleared between iterations of the computation loop, leading to already processed bytes being sent to the hasher, which resulted in invalid hash being computed. This PR fixes the problem. In addition, I added a test that verifies the fix.

@baoyachi baoyachi merged commit 705ef03 into baoyachi:master Aug 2, 2023
@baoyachi
Copy link
Owner

baoyachi commented Aug 2, 2023

@h33p Thx.

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.

2 participants