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

   sanityCheckUnpackInfo compares packedStreamsRequiredByFolders with 
numberOfPackedStreams the wrong way round, so the case its own error message 
names, folders needing more packed streams than kPackInfo declares, is the one 
that gets through. calculateStreamMap then walks folderFirstPackStreamIndex 
past the end of packStreamOffsets, and the first entry of the second folder of 
an archive declaring a single packed stream makes getNextEntry throw 
ArrayIndexOutOfBoundsException out of reopenFolderInputStream instead of the 
declared IOException; buildDecoderStack indexes packSizes with the same value. 
requiring the two counts to be equal keeps every archive the old comparison 
accepted, since it already rejected the opposite direction. the fuzz input 
behind the build-excluded SevenZReadSubStreamsInfoTest declares no packed 
streams for its single folder, so it now stops here rather than in the 
substream allocation.
   
   - [x] Read the [contribution guidelines](CONTRIBUTING.md) for this project.
   - [ ] Read the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html) if you use 
Artificial Intelligence (AI).
   - [ ] I used AI to create any part of, or all of, this pull request. Which 
AI tool was used to create this pull request, and to what extent did it 
contribute?
   - [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 unit tests that match behavioral changes, where the tests fail 
if the changes to the runtime are not applied. This may not always be possible, 
but it is a best practice.
   - [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: [email protected]

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

Reply via email to