Skip to content

deps: bump sevenz-rust2 from 0.22.2 to 0.25.0 - #1124

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sevenz-rust2-0.25.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sevenz-rust2-0.25.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps sevenz-rust2 from 0.22.2 to 0.25.0.

Changelog

Sourced from sevenz-rust2's changelog.

0.25.0 - 2026-11-06

Changed

  • Bumped lzma-rust2 to 0.25.
  • An LZMA entry hands out the data it decoded before a decoding error.

Fixed

  • Bound each decoded entry by its declared size and reject surplus output.
  • read_file verifies the block CRC of an entry that is the only entry with data in its block.
  • Reject an entry whose decoded data ends before its declared size. for_each_entries, BlockDecoder::for_each_entries and read_file returned such an entry as complete and skipped its CRC check. With a wrong password, read_file could return an empty entry.
  • Restore BCJ2 block framing and reject unconsumed input streams after decoding.
  • Keep reporting checksum and decoder errors when a callback ignores the first error.
  • Decode and verify the unread data of the last entry of a block when iteration continues, and reject a block whose decoded size differs from its declared size.
  • Reject at read time an archive whose number of files with a stream differs from its number of sub-streams.
  • ArchiveWriter::push_archive_entries and prepare_block give a sub-stream only to an entry with a stream. A directory in a solid block shifted the data of every later entry onto the wrong entry. An entry without a stream whose reader returns data is now an error.

Added

  • EntryDecision and ArchiveReader::for_each_entries_with_decision() for continuing, skipping a block, or stopping archive iteration. Returning false from the existing for_each_entries() callback skips the remaining entries of the current block.
  • ArchiveReader::new_with_memory_limit(), Archive::read_with_memory_limit(), and BlockDecoder::new_with_memory_limit() for limiting header and decoder dictionary/model allocations.
  • Archive::is_file_encrypted() to report whether an entry's compression block uses 7z AES.
  • ArchiveReader::for_each_entries_with_decision_allowing_surplus() for scanners of malformed archives.

0.24.2 - 2026-10-30

Fixed

  • Reading an archive whose header declares streams info but no files info panicked. The reader rejects such a header with an error, as 7-Zip does.
  • An empty entry between the files of a solid block hid the last file of that block from for_each_entries, read_file and BlockDecoder. The block covers all of its entries now.
  • The writer wrote the kEmptyFile and kAnti bit vectors too short when entries without a stream followed the last empty file or anti item. Readers then lost the entry names or failed to open the archive. Both vectors now hold one bit for every entry without a stream.
  • Decoding an archive with a block without packed streams panicked. The reader rejects such a block with an error.
  • A closure of for_each_entries that left an entry of a solid block unread or partly read broke the later entries of that block. The reader now decodes and verifies the unread data before it hands out the next entry with data. Skipping such an entry costs its decoding, and

... (truncated)

Commits
  • 3a56b95 chore: release v0.25.0
  • d655ae8 fix: stop draining surplus output after callback
  • 04d6b3c refactor: model declared-size behavior with an enum
  • 8151faa feat: expose surplus output from final 7z entries
  • 4d770b5 chore: bump lzma-rust2
  • f222e6d fix: give a sub-stream only to an entry with a stream and reject a count mism...
  • f1f502d docs: describe the encryption report for an entry without a stream inside a b...
  • 8ce11e1 fix: reject an entry whose decoded data ends before its declared size
  • 689bf56 fix: return the original error before repeating a copy of it
  • 4bbc327 fix: verify the block CRC when read_file reads a non-solid entry
  • 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 [sevenz-rust2](https://github.com/hasenbanck/sevenz-rust) from 0.22.2 to 0.25.0.
- [Changelog](https://github.com/hasenbanck/sevenz-rust2/blob/main/CHANGELOG.md)
- [Commits](hasenbanck/sevenz-rust2@v0.22.2...v0.25.0)

---
updated-dependencies:
- dependency-name: sevenz-rust2
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 23, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants