airlift / aircompressor

A port of Snappy, LZO, LZ4, and Zstandard to Java
Apache License 2.0
549 stars 110 forks source link

Fix out of bounds read/writes #186

Closed martint closed 5 months ago

martint commented 5 months ago

If the computed literal length was greater than Integer.MAX_VALUE, the value would overflow to a negative and cause a read before the beginning of the buffer.

Fix other assorted missing bounds checks.