You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/05/31 03:50:07 UTC

svn commit: r1890332 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java

Author: tilman
Date: Mon May 31 03:50:06 2021
New Revision: 1890332

URL: http://svn.apache.org/viewvc?rev=1890332&view=rev
Log:
PDFBOX-5192: partial revert because IOException isn't caught in 2.0, but show log message

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java?rev=1890332&r1=1890331&r2=1890332&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfSimpleDescript.java Mon May 31 03:50:06 2021
@@ -220,8 +220,8 @@ public class GlyfSimpleDescript extends
                 {
                     if (index + i >= flags.length)
                     {
-                        throw new IOException(
-                                "repeat count (" + repeats + ") higher than remaining space");
+                        LOG.error("repeat count (" + repeats + ") higher than remaining space");
+                        return;
                     }
                     flags[index + i] = flags[index];
                 }