Skip to content

#55 - UnzipTask: limit the number of entries and the uncompressed size - #56

Merged
njoubert-cleverage merged 1 commit into
mainfrom
55
Oct 23, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
55

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #55.

  • UnzipTask: new max_files and max_size options (?int, default null: no limit). They are checked from the central directory of the archive (numFiles, statIndex()) before anything is extracted; the task fails with a RuntimeException when a limit is exceeded.
  • Documentation: options, input keys, note on untrusted archives and on the partial extraction after another failure.
  • Tests in UnzipTaskTest.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: opt-in options.

🤖 Generated with Claude Code

…nything is extracted, to protect the server against zip bombs. Update documentation, add tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 3055ab6 into main Oct 23, 2026
18 checks passed
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.

UnzipTask: no limit on the number of entries and the uncompressed size

1 participant