sgup432 commented on PR #16500:
URL: https://github.com/apache/lucene/pull/16500#issuecomment-5900834431

   @msokolov Not really a bug to be honest. It's more about getting the right 
exception type when you read out of bounds. The code already tries to throw 
EOFException, but it never gets there if a read runs into the unused tail of 
the last block. chunk is capped by capacity(), so it never hits 0, and the 
absolute ByteBuffer#get throws an IndexOutOfBoundsException that nobody catches.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to