Skip to content

Bound default buffer size and add decompression limits#1152

Open
deirdresama wants to merge 1 commit into
amazon-ion:masterfrom
deirdresama:fix-embargo
Open

Bound default buffer size and add decompression limits#1152
deirdresama wants to merge 1 commit into
amazon-ion:masterfrom
deirdresama:fix-embargo

Conversation

@deirdresama

Copy link
Copy Markdown
Collaborator
  • Default maximumBufferSize to 100 MB (was effectively unbounded)
  • Add decompression size limits for GZIP streams
  • Enforce maximumBufferSize in text-reader path
  • Add API to disable GZIP auto-decompression

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.71264% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.07%. Comparing base (3c1b6b1) to head (002fc51).
⚠️ Report is 148 commits behind head on master.

Files with missing lines Patch % Lines
...om/amazon/ion/util/LimitedInflaterInputStream.java 45.45% 10 Missing and 2 partials ⚠️
...com/amazon/ion/impl/_Private_IonReaderFactory.java 40.00% 4 Missing and 2 partials ⚠️
...n/java/com/amazon/ion/system/IonReaderBuilder.java 91.30% 1 Missing and 1 partial ⚠️
...in/java/com/amazon/ion/IonBufferConfiguration.java 50.00% 0 Missing and 1 partial ⚠️
...com/amazon/ion/impl/_Private_IonReaderBuilder.java 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1152      +/-   ##
============================================
+ Coverage     67.23%   68.07%   +0.84%     
- Complexity     5484     5653     +169     
============================================
  Files           159      161       +2     
  Lines         23025    23363     +338     
  Branches       4126     4189      +63     
============================================
+ Hits          15481    15905     +424     
+ Misses         6262     6162     -100     
- Partials       1282     1296      +14     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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