pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1799597 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
Date Thu, 22 Jun 2017 17:30:31 GMT
Author: tilman
Date: Thu Jun 22 17:30:30 2017
New Revision: 1799597

URL: http://svn.apache.org/viewvc?rev=1799597&view=rev
Log:
PDFBOX-3839: avoid AIOOB

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

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java?rev=1799597&r1=1799596&r2=1799597&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
(original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
Thu Jun 22 17:30:30 2017
@@ -315,7 +315,7 @@ public class PostScriptTable extends TTF
      */
     public String getName(int gid)
     {
-        if (gid < 0 || glyphNames == null || gid > glyphNames.length)
+        if (gid < 0 || glyphNames == null || gid >= glyphNames.length)
         {
             return null;
         }



Mime
View raw message