Arawoof06 opened a new pull request, #1207:
URL: https://github.com/apache/arrow-java/pull/1207

   ## What's Changed
   
   `Lz4CompressionCodec.doDecompress` sizes the output buffer to the bytes it 
actually decompressed, but sets `writerIndex` to the length taken from the 
untrusted 8-byte prefix. A buffer whose prefix claims more than the real output 
leaves the returned `ArrowBuf` with a `writerIndex` past its capacity, and 
consumers then read off-heap memory beyond the allocation. This adds the 
actual-vs-claimed length check the ZSTD codec already does, so a mismatch 
throws instead of producing an over-long buffer.
   
   Closes #1206.


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