jmestwa-coder opened a new pull request, #1055:
URL: https://github.com/apache/poi/pull/1055

   ### Summary
   
   Enforce `maxEntrySize` consistently for ZIP entries processed via streaming, 
including when the entry size is unknown.
   
   ---
   
   ### Changes
   
   - Add fail-fast validation for known-size entries.
   - Replace size-limited copy with explicit bounded streaming:
     - Track bytes read.
     - Throw `RecordFormatException` when the limit is exceeded.
   - Apply the same enforcement to temp-file paths.
   
   ---
   
   ### Test
   
   - Adds a deterministic test for an unknown-size entry exceeding the limit.
   - Fails on previous behavior, passes with this change.
   
   ---
   
   ### Notes
   
   - Tightens validation; oversized entries are now rejected earlier.
   - Scope limited to `ZipArchiveFakeEntry`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to