Proposed fix for JDK-8028804 (Deflater.deflateBytes() may produce corrupted output on Deflater level/strategy change)
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 26 14:24:06 UTC 2013
On 26/11/2013 14:06, Thomas Stüfe wrote:
> Hi Alan,
>
> On 26 November 2013 14:55, Alan Bateman <Alan.Bateman at oracle.com
> <mailto:Alan.Bateman at oracle.com>> wrote:
>
> I think you're right but I wonder if this is something that needs
> to be brought upstream to the zlib project in order to get the
> support in deflateParams (or a new function).
>
>
> I reported this bug to the authors of the zlib and they confirmed the
> bug and the workaround. But even if they fix the current zlib, the jdk
> uses an older version, so this will not help us now, or?
My personal view is that we should link to libz where possible (already
so on Mac, but not the default on Linux or Solaris). Clearly we still
have to allow for platforms where it doesn't exist (Windows only I
think) and in that case we should periodically update it (as we did in
both JDK 7 and JDK 8). It may be time to look at upgrading it again (for
JDK 9 as this is not something to touch in the end-game of a release).
-Alan
More information about the core-libs-dev
mailing list