mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
6894950: test/java/util/zip/Bounds.java fails with OoutOfMemoryError
Fixed the boundary check in Deflater.java Reviewed-by: alanb
This commit is contained in:
parent
b36e33e9e0
commit
d9eeb64ea6
2 changed files with 2 additions and 3 deletions
|
@ -333,7 +333,7 @@ class Deflater {
|
||||||
* output buffer
|
* output buffer
|
||||||
*/
|
*/
|
||||||
public int deflate(byte[] b, int off, int len) {
|
public int deflate(byte[] b, int off, int len) {
|
||||||
return deflateBytes(b, off, len, NO_FLUSH);
|
return deflate(b, off, len, NO_FLUSH);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test
|
/* @test
|
||||||
* @bug 4811913
|
* @bug 4811913 6894950
|
||||||
* @ignore until 6896424 is resolved
|
|
||||||
* @summary Test bounds checking in zip package
|
* @summary Test bounds checking in zip package
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue