pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1564846 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
Date Wed, 05 Feb 2014 17:52:11 GMT
Author: lehmi
Date: Wed Feb  5 17:52:11 2014
New Revision: 1564846

URL: http://svn.apache.org/r1564846
Log:
PDFBOX-1882: avoid array exception as proposed by Robert Meyer

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java?rev=1564846&r1=1564845&r2=1564846&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java Wed Feb  5 17:52:11
2014
@@ -577,7 +577,7 @@ public class CFFParser
         {
             return CFFStandardString.getName(index);
         }
-        if (index - 391 <= stringIndex.getCount())
+        if (index - 391 < stringIndex.getCount())
         {
             DataInput dataInput = new DataInput(stringIndex.getBytes(index - 391));
             return dataInput.getString();



Mime
View raw message