shujiewu opened a new issue, #169:
URL: https://github.com/apache/arrow-java/issues/169

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The second parameter of the compressUnsafe function represents the available 
space in the destination buffer, so maxSize should be used here instead of 
destSize. It can lead to memory access out of bounds
   
   Code location: 
   
https://github.com/apache/arrow/blob/main/java/compression/src/main/java/org/apache/arrow/compression/ZstdCompressionCodec.java#L50C107-L50C114
   
   
   
   ### Component(s)
   
   Java


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to