6894950: test/java/util/zip/Bounds.java fails with OoutOfMemoryError
authorsherman
Fri, 30 Oct 2009 13:01:16 -0700
changeset 4178 61284fdd478f
parent 4177 208f8c11e7ba
child 4180 0c0afcd9a329
6894950: test/java/util/zip/Bounds.java fails with OoutOfMemoryError Summary: Fixed the boundary check in Deflater.java Reviewed-by: alanb
jdk/src/share/classes/java/util/zip/Deflater.java
jdk/test/java/util/zip/Bounds.java
--- a/jdk/src/share/classes/java/util/zip/Deflater.java	Fri Oct 30 15:06:24 2009 +0000
+++ b/jdk/src/share/classes/java/util/zip/Deflater.java	Fri Oct 30 13:01:16 2009 -0700
@@ -333,7 +333,7 @@
      *         output buffer
      */
     public int deflate(byte[] b, int off, int len) {
-        return deflateBytes(b, off, len, NO_FLUSH);
+        return deflate(b, off, len, NO_FLUSH);
     }
 
     /**
--- a/jdk/test/java/util/zip/Bounds.java	Fri Oct 30 15:06:24 2009 +0000
+++ b/jdk/test/java/util/zip/Bounds.java	Fri Oct 30 13:01:16 2009 -0700
@@ -22,8 +22,7 @@
  */
 
 /* @test
- * @bug 4811913
- * @ignore until 6896424 is resolved
+ * @bug 4811913 6894950
  * @summary Test bounds checking in zip package
  */