-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix checksum failure with small isos
When the size of an iso was small enough that the fragment size was smaller than the buffer size it wouldn't calculate or check the checksum correctly (it would output 19 instead of 20 checksum fragments). This fixes that by doing 2 things: * read the smaller of: - remaining bytes - fragment size - buffer size * When reading the last dangling bit of data add it to the checksum but do not write a 21st checksum fragment. This is backwards compatible with the previous code and now you can checksum any size iso.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters