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

MD5Builder::addStream: fixed falsy calculated hash for len > filelength #2126

Merged
merged 1 commit into from
Jun 13, 2016
Merged

MD5Builder::addStream: fixed falsy calculated hash for len > filelength #2126

merged 1 commit into from
Jun 13, 2016

Conversation

comino
Copy link
Contributor

@comino comino commented Jun 10, 2016

We found an issue with the MD5Builder::addStream method.
If len > filelength handled a false hash was calculated. Refactored for better readability.

Tested with a filestream resulted in calculating the correct hash.

@igrr
Copy link
Member

igrr commented Jun 10, 2016

Thanks! Would you mind adding your test case into host tests folder as well?

@codecov-io
Copy link

Current coverage is 26.30%

Merging #2126 into master will not change coverage

@@             master      #2126   diff @@
==========================================
  Files            19         19          
  Lines          3634       3634          
  Methods         328        328          
  Messages          0          0          
  Branches        585        585          
==========================================
  Hits            956        956          
  Misses         2513       2513          
  Partials        165        165          

Powered by Codecov. Last updated by de166c9...15a8354

@comino
Copy link
Contributor Author

comino commented Jun 10, 2016

oh.. of course! :)

@igrr igrr merged commit 3640757 into esp8266:master Jun 13, 2016
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