ZipFileInputStream's available() method incorrectly returns the full entry size in its available() method, rather than the remaining number of bytes that can be read.
src/share/classes/java/util/zip/ZipFile.java:
public int available() {
return size;
}
should be:
public int available() {
return rem;
}
This is causing bug 4818574 to happen. Please see 4818574 for more details.
src/share/classes/java/util/zip/ZipFile.java:
public int available() {
return size;
}
should be:
public int available() {
return rem;
}
This is causing bug 4818574 to happen. Please see 4818574 for more details.
- duplicates
-
JDK-4401122 java.util.zip.ZipFile.getInputStream(name).available() returns incorrect value
-
- Closed
-
- relates to
-
JDK-4818574 sun_jpeg_fill_suspended_buffer() causes JVM crash
-
- Resolved
-