-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adjust minimum file size check for compressed archive types
* when a file is smaller than the block size and padded with zeros, compression can remove the padding, resulting in a file size less than the block size. * for compressed archive types, the check now only ensures the size is sufficient to detect the corresponding magic numbers, rather than strictly adhering to block size. Signed-off-by: Tony Chen <[email protected]>
- Loading branch information
1 parent
7324344
commit 5c94da9
Showing
2 changed files
with
15 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