pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java?rev=1725810&r1=1725809&r2=1725810&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java Wed Jan 20
20:50:29 2016
@@ -90,7 +90,7 @@ final class FlateFilter extends Filter
     { 
         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