pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1737867 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Date Tue, 05 Apr 2016 18:14:57 GMT
Author: tilman
Date: Tue Apr  5 18:14:56 2016
New Revision: 1737867

URL: http://svn.apache.org/viewvc?rev=1737867&view=rev
Log:
PDFBOX-3308: add NUL and FF as name delimiters, as suggested by Andrea Vacondio

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java?rev=1737867&r1=1737866&r2=1737867&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java Tue
Apr  5 18:14:56 2016
@@ -1123,7 +1123,7 @@ public abstract class BaseParser
     protected boolean isEndOfName(char ch)
     {
         return (ch == ' ' || ch == 13 || ch == 10 || ch == 9 || ch == '>' || ch == '<'
-            || ch == '[' || ch =='/' || ch ==']' || ch ==')' || ch =='(' ||
+            || ch == '[' || ch =='/' || ch ==']' || ch ==')' || ch =='(' || ch == 0 || ch
== '\f' ||
             ch == -1 //EOF
         );
     }



Mime
View raw message