pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1725811 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
Date Wed, 20 Jan 2016 20:50:38 GMT
Author: lehmi
Date: Wed Jan 20 20:50:38 2016
New Revision: 1725811

URL: http://svn.apache.org/viewvc?rev=1725811&view=rev
Log:
PDFBOX-3201: use read instead of skip to avoid EOFException

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java?rev=1725811&r1=1725810&r2=1725811&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java Wed
Jan 20 20:50:38 2016
@@ -117,7 +117,7 @@ public class FlateFilter implements Filt
     { 
         byte[] buf = new byte[2048]; 
         // skip zlib header
-        in.skip(2);
+        in.read(buf,0,2);
         int read = in.read(buf); 
         if(read > 0) 
         { 



Mime
View raw message