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 2014/04/02 20:15:56 UTC
svn commit: r1584117 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Author: tilman
Date: Wed Apr 2 18:15:56 2014
New Revision: 1584117
URL: http://svn.apache.org/r1584117
Log:
PDFBOX-2008: fix error in check of max generation number
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=1584117&r1=1584116&r2=1584117&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 Wed Apr 2 18:15:56 2014
@@ -1640,7 +1640,7 @@ public abstract class BaseParser
protected int readGenerationNumber() throws IOException
{
int retval = readInt();
- if(retval < 0 || retval >= GENERATION_NUMBER_THRESHOLD) {
+ if(retval < 0 || retval > GENERATION_NUMBER_THRESHOLD) {
throw new IOException("Generation Number '" + retval + "' has more than 5 digits");
}
return retval;