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

   Refactors `ArArchiveInputStream.getNextEntry()` to follow the same 
structural approach as TarArchiveInputStream.getNextEntry()`, improving 
consistency and maintainability.
   
   **Key changes:**
   
   * Unifies parsing of the GNU string table with the pattern used for TAR 
special records.
   * Replaces the _ad-hoc_ byte counter with the inherited `count()` method for 
more accurate and readable tracking.
   * Adds a sanity check: throws an exception if a regular file entry does not 
follow a special AR member (GNU string table).v
   * Consistently throws `EOFException` in case of truncated content.
   * Improves consistency of error messages.
   
   - [x] I used AI to proofread the pull request.
   - [x] Run a successful build using the default 
[Maven](https://maven.apache.org/) goal with `mvn`; that's `mvn` on the command 
line by itself.
   - [x] Write a pull request description that is detailed enough to understand 
what the pull request does, how, and why.
   - [x] Each commit in the pull request should have a meaningful subject line 
and body. Note that a maintainer may squash commits during the merge process.
   


-- 
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: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to