OldTruckDriver opened a new pull request, #775:
URL: https://github.com/apache/commons-compress/pull/775

   ## Summary
   
   Fix `TarUtils.parsePAX1XSparseHeaders(InputStream, int)` so it does not skip 
an extra tar record when GNU PAX 1.x sparse headers end exactly on a record 
boundary.
   
   ## Details
   
   Previously, the padding calculation used `recordSize - bytesRead % 
recordSize`. When `bytesRead` was already aligned to `recordSize`, this 
computed a full-record skip instead of `0`, advancing the stream past real 
entry data.
   
   This change uses modulo padding calculation so aligned sparse headers leave 
the stream positioned at the first data byte.
   
   ## Tests
   
   - `mvn -q -Dtest=org.apache.commons.compress.archivers.tar.TarUtilsTest test`
   - `mvn -q`


-- 
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]

Reply via email to