[Java] ZSTD compression issue
オープン
- 主要言語
- Java
- スター
- 94
- フォーク
- 152
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 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 はまだ評価されていません。