Skip to content

chore(deps): bump zip from 8.6.0 to 9.1.2 - #93

Merged
krassx merged 3 commits into
mainfrom
dependabot/cargo/zip-9.1.2
Oct 29, 2026
Merged

krassx merged 3 commits into
mainfrom
dependabot/cargo/zip-9.1.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 29, 2026

Copy link
Copy Markdown
Contributor

Bumps zip from 8.6.0 to 9.1.2.

Release notes

Sourced from zip's releases.

v9.1.1

🐛 Bug Fixes

  • store the raw count instead of a bool (#1174)
  • preserve extra fields in raw_copy_file_touch (#1172)
  • (write) flag a non-ASCII file comment as UTF-8 when writing it (#1160)
  • (write) reject duplicate names in merge_archive, blank stale footers, and add opt-in extra-field validation (#1159)

v9.1.0

🚀 Features

  • (read) enforce header consistency on extract_with_options and expose duplicate name detection (#1109)
  • Add borrowing inner method to reader wrappers (#1050)
  • add with_size_limit to ExtractOptions to limit total declared uncompressed size (#1019)
  • add file_names_raw iterator (#1082)

🐛 Bug Fixes

  • raw_copy_file keeps an entry's name bytes and UTF-8 flag as stored (#1124)
  • (write) prevent seek panic on streaming writer with comment (#1151)
  • Accept bounded central directory digital signature record when enforcing header consistency in ZipStreamReader (#1134)
  • apply unix permissions at creation (#1104)
  • raw_copy_file should work with any extra fields (#1120)
  • (read) avoid full-file forward scans and redundant allocations in central directory (#1142)
  • don't enable typed-path's default std feature (#1112)
  • ZIP64 size fields were being deep-copied incorrectly (via Copilot gpt-6-luna) (#1107)
  • resolve decoded CP437 member names (#1080) (#1085)
  • Debug assertion doesn't account for length of archive comment (#1097)

🚜 Refactor

  • Lazy instantiation for all decompressors (#1046) (#1047)

⚡ Performance

  • (write) reuse the DEFLATE compressor across entries (#1119)

⚙️ Miscellaneous Tasks

  • Fix reference to nonexistent variable on #[cfg(not(any(unix, windows)))] (#1138)
  • target lzma-rust2 v0.23 (#1096)

Bench

  • add Criterion benchmarks (#754)
  • add deflate_many_small_files bench for #633 (#964)

v9.0.5

🐛 Bug Fixes

... (truncated)

Changelog

Sourced from zip's changelog.

9.1.2 - 2026-10-26

🐛 Bug Fixes

  • preserve the file kind (normal/directory/symlink) in raw_copy_file_touch (#1179)
  • (write) reject a Unicode Path extra field that would rename the entry (#1177)
  • (extract) prevent following symbolic links during file creation (#1116)

9.1.1 - 2026-10-25

🐛 Bug Fixes

  • store the raw count instead of a bool (#1174)
  • preserve extra fields in raw_copy_file_touch (#1172)
  • (write) flag a non-ASCII file comment as UTF-8 when writing it (#1160)
  • (write) reject duplicate names in merge_archive, blank stale footers, and add opt-in extra-field validation (#1159)

9.1.0 - 2026-10-24

🚀 Features

  • (read) enforce header consistency on extract_with_options and expose duplicate name detection (#1109)
  • Add borrowing inner method to reader wrappers (#1050)
  • add with_size_limit to ExtractOptions to limit total declared uncompressed size (#1019)
  • add file_names_raw iterator (#1082)

🐛 Bug Fixes

  • raw_copy_file keeps an entry's name bytes and UTF-8 flag as stored (#1124)
  • (write) prevent seek panic on streaming writer with comment (#1151)
  • Accept bounded central directory digital signature record when enforcing header consistency in ZipStreamReader (#1134)
  • apply unix permissions at creation (#1104)
  • raw_copy_file should work with any extra fields (#1120)
  • (read) avoid full-file forward scans and redundant allocations in central directory (#1142)
  • don't enable typed-path's default std feature (#1112)
  • ZIP64 size fields were being deep-copied incorrectly (via Copilot gpt-6-luna) (#1107)
  • resolve decoded CP437 member names (#1080) (#1085)
  • Debug assertion doesn't account for length of archive comment (#1097)

🚜 Refactor

  • Lazy instantiation for all decompressors (#1046) (#1047)

⚡ Performance

  • (write) reuse the DEFLATE compressor across entries (#1119)

⚙️ Miscellaneous Tasks

  • Fix reference to nonexistent variable on #[cfg(not(any(unix, windows)))] (#1138)

... (truncated)

Commits
  • 662ae13 chore: release v9.1.2 (#1176)
  • e221cd0 fix: preserve the file kind (normal/directory/symlink) in raw_copy_file_touch...
  • 525d81e fix(write): reject a Unicode Path extra field that would rename the entry (#1...
  • dcc28ed ci(fuzz): Fixes for fallback when Rust nightly is updated mid-run (#1178)
  • 68e7e84 fix(extract): prevent following symbolic links during file creation (#1116)
  • b7201ce chore: release v9.1.1 (#1173)
  • 67b3e52 fix: store the raw count instead of a bool (#1174)
  • 9d710d3 ci: Share cargo-afl build across workflows (#1167)
  • d6c0278 fix: preserve extra fields in raw_copy_file_touch (#1172)
  • c3232c4 test: cover unreserved validation for prepared files (#1169)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [zip](https://github.com/zip-rs/zip2) from 8.6.0 to 9.1.2.
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](zip-rs/zip2@v8.6.0...v9.1.2)

---
updated-dependencies:
- dependency-name: zip
  dependency-version: 9.1.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f977bc7d-e255-40e2-b829-ea61cbae2a8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

krassx and others added 2 commits October 29, 2026 18:23
zip 9 makes ZipFile::name() and ZipArchive::file_names() fallible. The ELF
native-symbols zip reader now maps a name error to InvalidData (stable exit
code, no panic); tests unwrap. Add header-level pin tests for the archives we
write (compress packer and synthetic .ipa); output verified byte-identical to
zip 8.6.0 via `pack` at levels 11/19 and --no-zstd.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WeiJxQWhjhQvvURAjiDkti
@claude

claude Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 51s —— View job


Review of PR #93: bump zip 8.6.0 → 9.1.2

  • Read the diff and the surrounding code (compress/mod.rs, xcode_ipa.rs, symbols/elf.rs, and every other zip use in src/)
  • Read the zip 9.1.2 source for the behaviour changes that matter here (name(), CP437 fallback, MSRV)
  • Posted the summary

I found no real issues and posted no inline comments. I did not run cargo test, clippy or fmt myself. At the time of review the CI, e2e and PR #93 runs were still in_progress, so merge only once they are green.

Findings

None.

What I checked

1. elf.rs is the only production code change, and its new error path is effectively dead.
ZipFile::name() now returns ZipResult<Cow<str>>, and extract_libs propagates the error with ? (src/symbols/elf.rs:113-116). One bad entry name would therefore abort the whole extraction, including entries that were never libraries. That was the concern.
In zip 9.1.2 (types.rs:128), name() tries UTF-8 first and then falls back to CP437 (cp437.rs:17). The CP437 step fails only when no byte is >= 0x80 and the bytes are also not valid UTF-8. That combination is impossible, because ASCII-only bytes are always valid UTF-8. So the map_err branch can't be reached in practice, and a corrupt or non-UTF-8 native-debug-symbols.zip behaves as before. If you want certainty, a test with a CP437-named entry in elf.rs would pin it. It isn't needed for merge.

2. The wire format is protected by the new tests.
The pinned-header test (compress/mod.rs, written_archive_headers_are_pinned) checks:

  • the local and central header fields (version needed, flags, method, DOS time and date),
  • unix mode 0o100644,
  • no ZIP64 records, no archive comment and no trailing bytes.

This is the right check for a major-version bump of the crate that produces the upload format. The platform-aware made-by host byte (0x300 vs 0x000 on Windows) is handled correctly.
ipa_entry_metadata_is_pinned does the same for .ipa entries: mode, method and the fixed 1980-01-01 mtime. The .ipa test is #[cfg(unix)], which is appropriate.
CLAUDE.md calls these wire shapes a public contract, so this coverage is what I'd want to see.

3. MSRV is unchanged.
zip 9.1.2 declares rust-version = "1.88", the same as this crate. The new transitive crates are nix 0.31.3 (1.69), getrandom 0.4.2 (1.85) and typed-path 0.13. None raises the floor above 1.88. As CLAUDE.md notes, CI builds on stable, so nothing in CI would catch a floor raise. The cargo +1.88 check --all-targets check is worth running once by hand.

4. Other API changes.
All other non-test uses of zip (ZipWriter, SimpleFileOptions, DateTime::from_date_and_time, CompressionMethod) are unchanged and compile against the lockfile. The remaining edits are test-only .name().unwrap() adaptations.

Notes

  • Cargo.lock also moves getrandom to 0.4.2 and pulls in nix and windows-sys 0.61.2 through zip. nix is unix-only, so it should not matter on Windows. The Windows CI leg will confirm.
  • The release notes include "prevent following symbolic links during file creation" (extract) and header-consistency changes. This crate only reads and writes archives and never uses extract, so they don't affect it.
  • Two commits on this branch (da65e44, 70dde93) were added on top of Dependabot's. Dependabot won't rebase or auto-resolve conflicts on this PR any more, so a conflict would need a manual rebase.

Summary

  1. Overall risk: Low
  2. Merge recommendation: Approve once CI, e2e and the Windows leg are green.
  3. Most important things to fix: None blocking. Optionally add a CP437-name entry test for extract_libs, and run cargo +1.88 check --all-targets once.
  4. Positives:
    • Byte-level header pinning guards the upload format.
    • The new tests record that their values were captured from zip 8.6.0.
    • The elf.rs error handling is typed as InvalidData.
    • The change is scoped tightly.
      · Branch: dependabot/cargo/zip-9.1.2

@krassx
krassx merged commit 7946f9b into main Oct 29, 2026
26 checks passed
@krassx
krassx deleted the dependabot/cargo/zip-9.1.2 branch October 29, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant