-
Bug
-
Resolution: Fixed
-
P4
-
7, 8, 9, 10, 11, 17, 18
-
b15
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8283867 | 18.0.2 | Ravi Reddy | P4 | Resolved | Fixed | b02 |
JDK-8283743 | 17.0.4-oracle | Ravi Reddy | P4 | Resolved | Fixed | b01 |
JDK-8283848 | 17.0.4 | Martin Doerr | P4 | Resolved | Fixed | b01 |
JDK-8284904 | 15.0.8 | Yuri Nesterenko | P4 | Resolved | Fixed | b01 |
JDK-8284905 | 13.0.12 | Yuri Nesterenko | P4 | Resolved | Fixed | b01 |
JDK-8283741 | 11.0.16-oracle | Ravi Reddy | P4 | Resolved | Fixed | b01 |
JDK-8284351 | 11.0.16 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8338959 | openjdk8u432 | Yuri Nesterenko | P4 | Resolved | Fixed | b04 |
JDK-8283742 | 8u341 | Ravi Reddy | P4 | Resolved | Fixed | b01 |
JDK-8283980 | 7u351 | Ravi Reddy | P4 | Resolved | Fixed | b02 |
Test case :
import java.io.IOException;
import java.io.OutputStream;
import java.util.Random;
import java.util.zip.ZipEntry;
import java.util.zip.DeflaterOutputStream;
public class GZipLoopTest {
private static final int FINISH_NUM = 512;
public static void main(String[] args) {
test();
}
private static void test() {
byte[] b = new byte[FINISH_NUM];
Random rand = new Random();
rand.nextBytes(b);
DeflaterOutputStream zip = new DeflaterOutputStream(new OutputStream() {
@Override
public void write(byte[] b, int off, int len) throws IOException{
throw new IOException();
}
@Override
public void write(byte b[]) throws IOException {}
@Override
public void write(int b) throws IOException {}
});
try {
zip.write(b , 0, 512);
} catch (IOException ex) {
ex.printStackTrace();
}
try {
zip.finish();
} catch (IOException ex) {
ex.printStackTrace();
}
for(int i=0;i<3;i++) {
try {
zip.write(b , 0, 512);
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
}
- backported by
-
JDK-8283741 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8283742 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8283743 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8283848 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8283867 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8283980 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8284351 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8284904 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8284905 Infinite loop in DeflaterOutputStream.finish()
- Resolved
-
JDK-8338959 Infinite loop in DeflaterOutputStream.finish()
- Resolved
- relates to
-
JDK-8193682 Infinite loop in ZipOutputStream.close()
- Closed
- links to
-
Commit openjdk/jdk11u-dev/11196c4d
-
Commit openjdk/jdk13u-dev/7fa1b56b
-
Commit openjdk/jdk15u-dev/12261396
-
Commit openjdk/jdk17u-dev/66c35298
-
Commit openjdk/jdk18u/9327634e
-
Commit openjdk/jdk/ff0b0927
-
Commit(master) openjdk/jdk8u-dev/49425166
-
Review openjdk/jdk11u-dev/975
-
Review openjdk/jdk13u-dev/341
-
Review openjdk/jdk15u-dev/196
-
Review openjdk/jdk17u-dev/287
-
Review openjdk/jdk18u/53
-
Review openjdk/jdk/7804
-
Review(master) openjdk/jdk8u-dev/565