Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reusing code from zip size known and adjusting comments
- Loading branch information
Showing
1 changed file
with
6 additions
and
8 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
02cfa8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change:
deflate
intodefault
:COMPRESSION_DEFLATE
is removed.If not malicious, I'd say on track to be.
zip->entry_compression = zip->requested_compression;
and subsequent if conditions could be moved further apart to introduce bugs.02cfa8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit needs to be viewed as a part of larger PR (#1598) and its parent (de36667). Specifically, it would seem that the some changes from de36667 were reverted. Final diff can be viewed on https://github.com/libarchive/libarchive/pull/1598/files#diff-2f1ae3da987a7d1b3cf93b0fad39b902e73a411acc2444f9a68f54909bbd44e9
Didn't exist prior to de36667
Seems to mimic behavior prior to de36667 but clarifies comment (original comment specified that deflate is used, however code actually used
DEFAULT
)