[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 还没有评估数据。