[Java] ZSTD compression issue
未關閉
- 主要語言
- Java
- 星號
- 94
- 分支
- 152
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 11
描述
### 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
貢獻指南
評估
這個 Issue 還沒有評估資料。