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

   Fixes [COMPRESS-733](https://issues.apache.org/jira/browse/COMPRESS-733).
   
   When an imploded (method 6) entry ends inside the length code of a back 
reference, `ExplodingInputStream.fillBuffer()` used the -1 from 
`lengthTree.read(bits)` as a length and copied one byte from the still empty 
dictionary. This returns there, as the literal and distance branches already do.
   
   `ExplodingInputStreamTest.testTruncatedBackReferenceLength` decodes such a 
stream; it gets 1 byte without the change and 0 with it. `mvn -B -DskipTests 
-DskipITs` passes.
   
   This issue was found by an LLM-Enhanced Static Analysis Engine and verified 
manually. The patch and this description were prepared with AI assistance 
(Claude Code) and reviewed by me; the commit carries an `Assisted-By:` trailer.
   


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