提交 2b838045 编写于 作者: S sherman

6894950: test/java/util/zip/Bounds.java fails with OoutOfMemoryError

Summary: Fixed the boundary check in Deflater.java
Reviewed-by: alanb
上级 37f434c6
...@@ -333,7 +333,7 @@ class Deflater { ...@@ -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 @@ ...@@ -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
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册