pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1864768 - /pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Date Fri, 09 Aug 2019 06:39:39 GMT
Author: tilman
Date: Fri Aug  9 06:39:38 2019
New Revision: 1864768

URL: http://svn.apache.org/viewvc?rev=1864768&view=rev
Log:
PDFBOX-4626: avoid ArrayIndexOutOfBoundsException

Modified:
    pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java

Modified: pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java?rev=1864768&r1=1864767&r2=1864768&view=diff
==============================================================================
--- pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
(original)
+++ pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/CmapSubtable.java
Fri Aug  9 06:39:38 2019
@@ -167,7 +167,7 @@ public class CmapSubtable implements Cma
                 {
                     throw new IOException("[Sub Format 8] Invalid character code " + j);
                 }
-                if ((int) j / 8 == is32.length)
+                if ((int) j / 8 >= is32.length)
                 {
                     throw new IOException("[Sub Format 8] Invalid character code " + j);
                 }



Mime
View raw message