You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by tb...@apache.org on 2012/01/24 14:13:37 UTC

svn commit: r1235240 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java

Author: tboehme
Date: Tue Jan 24 13:13:36 2012
New Revision: 1235240

URL: http://svn.apache.org/viewvc?rev=1235240&view=rev
Log:
removed catching OutOfMemoryError in FlateFilter (see PDFBOX-847)

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=1235240&r1=1235239&r2=1235240&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 Tue Jan 24 13:13:36 2012
@@ -117,13 +117,6 @@ public class FlateFilter implements Filt
                             result.write(buffer, 0, amountRead);
                         }
                     }
-                    catch (OutOfMemoryError exception)
-                    {
-                        // if the stream is corrupt an OutOfMemoryError may occur
-                        LOG.error("FlateFilter: stop reading corrupt stream due to an OutOfMemoryError");
-                        // re-throw the exception, caller has to handle it
-                        throw exception;
-                    }
                     catch (ZipException exception)
                     {
                         // if the stream is corrupt an ZipException may occur