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

#403 - Checksum Generator is wrong about gz file hash #405

Merged
merged 3 commits into from Feb 18, 2022

Conversation

michael-hoedl
Copy link
Contributor

FIX / QOL improvements

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

Currently, if there is an archive > 2 MB, the checksum generator generates false checksums.

Issue Number: #403

What is the new behavior?

I simplified the method, so its easier to read and now correctly functions.

Other information

If needed, i can expand the unit tests, so an array with an aproximated size of 15 MB get's checked.

Quality check

Before creating this PR, have you:

  • Followed the code style guideline as described in CONTRIBUTING.md
  • Verified that the change work in Release build configuration
  • Checked all unit tests pass

@michael-hoedl michael-hoedl changed the title #403 - Fix for incorrect base64 hashes #403 - Checksum Generator is wrong about gz file hash Feb 16, 2022
@veler veler linked an issue Feb 18, 2022 that may be closed by this pull request
@veler veler mentioned this pull request Feb 18, 2022
11 tasks
Copy link
Collaborator

@veler veler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Thank you for your contribution. I gave it a try and it looks very great! :D

@veler veler merged commit bc3fc3d into DevToys-app:main Feb 18, 2022
veler pushed a commit that referenced this pull request Mar 31, 2023
* Simplified the ComputeHashAsync method

* Progess and cancelation now also gets checked after the TransformFinalBlock call

* fixed a typo
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.

Checksum Generator is wrong about gz file hash
2 participants