-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.2 to 1.3.0. **This update includes a security fix.** - [Release notes](https://github.com/rubyzip/rubyzip/releases/tag/v1.3.0) - [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md) - [Commits](rubyzip/[email protected]) Security fix adds `validate_entry_sizes` option so that callers can trust an entry's reported size when using `extract`. We don't currently call `extract`, so I don't think we're affected by this issue. As per rubyzip/rubyzip#403, I've created an initializer to set `validate_entry_sizes`, which can be removed once we drop support for Ruby 2.3 (#5222).
- Loading branch information
1 parent
c7658f1
commit a17d9de
Showing
4 changed files
with
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- encoding : utf-8 -*- | ||
require 'zip' | ||
|
||
# Manually set `validate_entry_sizes`, which is the default in rubyzip 2.0.0. | ||
# rubyzip 2.0.0 requires Ruby 2.4+, so we can't upgrade to that yet. | ||
# | ||
# See: https://github.com/rubyzip/rubyzip/pull/403 | ||
Zip.validate_entry_sizes = true |