Author: ebourg
Date: Thu Dec 19 10:01:06 2013
New Revision: 1552274
URL: http://svn.apache.org/r1552274
Log:
Defer checking the inflater state to the readDeflated() method
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java?rev=1552274&r1=1552273&r2=1552274&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
Thu Dec 19 10:01:06 2013
@@ -348,7 +348,8 @@ public class ZipArchiveInputStream exten
if (closed) {
throw new IOException("The stream is closed");
}
- if (inf.finished() || current == null) {
+
+ if (current == null) {
return -1;
}