QuakeWang opened a new pull request, #8590:
URL: https://github.com/apache/paimon/pull/8590

   ### Purpose
   
   `OffsetSeekableInputStream.read(byte[], int, int)` capped the requested 
length with the remaining bounded range. After seeking past the range, this 
produced a negative length and passed it to the wrapped stream, causing an 
`IndexOutOfBoundsException`.
     It also returned EOF for zero-length reads and skipped argument validation 
at EOF.
   
   Validate arguments first, return zero for zero-length reads, and return EOF 
when the bounded range has no remaining bytes.
   
     ### Tests
   
     - `mvn -pl paimon-common -am clean test`
   


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