Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b16
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311859 | 17.0.9-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b02 |
JDK-8309589 | 17.0.9 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
JDK-8309818 | 11.0.21 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
Description
The content consists of a data stream of bytes with the value `42`.
The check currently compares the temporary inflation buffer with the original source buffer, no matter how many bytes were inflated into the inflation buffer. This can lead to problems with alternative zlib implementations which sometimes write beyond the last inflated byte (see
The fix is trivial. Only compare as many bytes as have been inflated against the original content.
Attachments
Issue Links
- backported by
-
JDK-8309589 (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes
- Resolved
-
JDK-8309818 (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes
- Resolved
-
JDK-8311859 (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes
- Resolved
- relates to
-
JDK-8282648 Weaken the InflaterInputStream specification in order to allow faster Zip implementations
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/185ad54a
-
Commit openjdk/jdk17u-dev/ef86ea28
-
Commit openjdk/jdk/0c472c8a
-
Review openjdk/jdk11u-dev/1937
-
Review openjdk/jdk17u-dev/1416
-
Review openjdk/jdk/7984