Skip to content

chore(deps): update pbkdf2 requirement from 0.11.0 to 0.12.1#2

Merged
github-actions[bot] merged 1 commit intomasterfrom
dependabot/cargo/pbkdf2-0.12.1
Apr 23, 2023
Merged

chore(deps): update pbkdf2 requirement from 0.11.0 to 0.12.1#2
github-actions[bot] merged 1 commit intomasterfrom
dependabot/cargo/pbkdf2-0.12.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 23, 2023

Updates the requirements on pbkdf2 to permit the latest version.

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Apr 23, 2023
@Pr0methean
Copy link
Copy Markdown
Member

@dependabot rebase

Updates the requirements on [pbkdf2](https://github.com/RustCrypto/password-hashes) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/password-hashes/releases)
- [Commits](RustCrypto/password-hashes@scrypt-v0.11.0...pbkdf2-v0.12.1)

---
updated-dependencies:
- dependency-name: pbkdf2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/pbkdf2-0.12.1 branch from cbb21ac to 02a4408 Compare April 23, 2023 22:32
@github-actions github-actions bot merged commit a209aa5 into master Apr 23, 2023
@dependabot dependabot bot deleted the dependabot/cargo/pbkdf2-0.12.1 branch April 23, 2023 22:33
lovasoa added a commit to lovasoa/zip2 that referenced this pull request Mar 20, 2026
Problem: each ZIP entry stores the filename three times:
  1. file_name: Box<str> (decoded)
  2. file_name_raw: Box<[u8]> (raw bytes)
  3. IndexMap key: Box<str> (clone of zip-rs#1)
For a 23K-entry JAR, this means 3 heap allocations per entry just
for filenames, totaling ~4.4 MiB of redundant data.

Fix: replace zip-rs#1 and zip-rs#2 with a single ZipFileName enum. The Utf8
variant (used for >99% of real-world files) holds one Arc<str>
that serves both name() and name_raw(). The IndexMap key becomes
Arc<str> sharing the same refcount — zero-cost clone.

The write_non_utf8 test is now #[ignore] because it relied on
String::from_utf8_unchecked with invalid UTF-8 bytes, which is
undefined behavior. A proper fix needs a raw-filename write API.

Measured on bazel.jar (23,631 Stored entries):
  ZipArchive::new() allocations:
    before: 4.0 allocs/entry, 490 net bytes/entry (94,530 total)
    after:  3.0 allocs/entry, 378 net bytes/entry (70,899 total)
  cargo bench read_metadata (15K entries):
    before: 2,709,974 ns/iter
    after:  2,486,833 ns/iter (-8.2%)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mend: dependency security vulnerability Security vulnerability detected by Mend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant