Skip to content

Bound self-update archive extraction#693

Merged
ryanfowler merged 1 commit into
mainfrom
limit-selfupdate-extraction
Jun 2, 2026
Merged

Bound self-update archive extraction#693
ryanfowler merged 1 commit into
mainfrom
limit-selfupdate-extraction

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Add shared extraction limits for self-update archives with cumulative decompressed byte and entry-count caps.
  • Route tar.gz and zip unpacking through bounded copy helpers and remove partial outputs on limit failures.
  • Add regression tests for tar.gz and zip archives that exceed a small extraction limit.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features test_unpack
  • cargo test --all-features

@ryanfowler ryanfowler enabled auto-merge June 2, 2026 13:07
@ryanfowler ryanfowler merged commit 138eef4 into main Jun 2, 2026
4 checks passed
@ryanfowler ryanfowler deleted the limit-selfupdate-extraction branch June 2, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant