Details
-
Sub-task
-
Resolution: Delivered
-
P4
-
19
Description
A change to `java.util.zip.InflaterInputStream` in this release means it is possible that reading uncompressed bytes with this API can fail with an unexpected `java.io.EOFException`.
The issue arises when reading uncompressed bytes with a byte array that isn't large enough to fit all bytes that have been uncompressed. In that case, the additional uncompressed bytes are buffered by the implementation to be consumed by the next call to the `read` method. If the compressed stream is at end of stream then a subsequent `read` of the uncompressed data will fail incorrectly with `EOFException`.
This issue will be fixed in a future update. It may be possible to workaround the issue in some cases by calling `read` with a larger bye array.
The issue arises when reading uncompressed bytes with a byte array that isn't large enough to fit all bytes that have been uncompressed. In that case, the additional uncompressed bytes are buffered by the implementation to be consumed by the next call to the `read` method. If the compressed stream is at end of stream then a subsequent `read` of the uncompressed data will fail incorrectly with `EOFException`.
This issue will be fixed in a future update. It may be possible to workaround the issue in some cases by calling `read` with a larger bye array.