[backport camel-4.18.x] CAMEL-24166: Enforce maxDecompressedSize in iterator/splitter mode for zip and tar - #26894
Merged
oscerd merged 1 commit intoSep 25, 2026
Conversation
…terator/splitter mode for zip and tar (cherry picked from commit aa68003) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
gnodet-bot
approved these changes
Sep 25, 2026
gnodet-bot
left a comment
Contributor
There was a problem hiding this comment.
Clean backport of #24817 (CAMEL-24166) — enforces maxDecompressedSize in iterator/splitter mode for both zip and tar components. Diff is identical to the original PR merged to main. Security fix with proper test coverage for both TarIterator/ZipIterator (via DataFormat) and TarSplitter/ZipSplitter paths. No issues.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #24817
Cherry-pick of #24817 onto
camel-4.18.x.Original PR: #24817 - CAMEL-24166: Enforce maxDecompressedSize in iterator/splitter mode for zip and tar
Original author: @Croway
Target branch:
camel-4.18.xThis is a straight cherry-pick of
aa68003fabf3. It applied without conflicts, and its added and removed lines are identical to the original commit.Behaviour change on 4.18.x: with
usingIterator=true, or withZipSplitter/TarSplitter, an entry that decompresses to more thanmaxDecompressedSize(default 1 GiB) now fails with anIOException, as it already does in the default single-entry mode. The 4.18.5 upgrade-guide note will be added onmain, where the upgrade guides for all release lines are kept.Testing on
camel-4.18.x:camel-zipfile(45 tests) andcamel-tarfile(44 tests) pass, including the four tests added by CAMEL-24166: Enforce maxDecompressedSize in iterator/splitter mode for zip and tar #24817.mvn clean install -DskipTests).Claude Code on behalf of oscerd
🤖 Generated with Claude Code