Skip to content

Fail promptly on incomplete compressed input - #57

Merged
uwemaurer merged 1 commit into
ebics-java:masterfrom
CooperBigFoot:effort-38-unzip-progress
Nov 11, 2026
Merged

uwemaurer merged 1 commit into
ebics-java:masterfrom
CooperBigFoot:effort-38-unzip-progress

Conversation

@CooperBigFoot

Copy link
Copy Markdown
Contributor

Utils.unzip can spin indefinitely when a zlib stream is truncated or requires a preset dictionary.

  • Throw EbicsException when inflation cannot progress because input or a dictionary is missing.
  • Release native inflater state in finally, including failed decompression.
  • Cover truncated and dictionary streams, plus non-empty and empty round-trips.

Public signatures and EBICS wire behavior are unchanged. No decompression size policy is added.

Verified with Java 17: focused tests and ./mvnw verify. The two rejection tests time out on unchanged 40b12ac and pass with this fix.

Prepared with AI assistance, with human review before publication. I have six months of top-tier Google model access for research and am investing that opportunity in verified open-source contributions. Related to #54.

@uwemaurer
uwemaurer merged commit 025303d into ebics-java:master Nov 11, 2026
1 check passed
@uwemaurer

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants