Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5452

java.io.IOException: Number '18446744073709486079' is getting too long, stop reading at offset 9454

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.0 PDFBox
    • Parsing

    Description

      The rendering of the attached file fails using 3.0.0-alpha3. It works with 3.0.0-alpha2

      java.lang.RuntimeException: java.io.IOException: Number '18446744073709486079' is getting too long, stop reading at offset 9454
          org.apache.pdfbox.debugger.PDFDebugger$5.actionPerformed(PDFDebugger.java:1455)
          java.base/java.security.AccessController.doPrivileged(Native Method)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
          java.base/java.security.AccessController.doPrivileged(Native Method)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      Caused by: java.io.IOException: Number '18446744073709486079' is getting too long, stop reading at offset 9454
          org.apache.pdfbox.pdfparser.BaseParser.readStringNumber(BaseParser.java:1314)
          org.apache.pdfbox.pdfparser.BaseParser.readLong(BaseParser.java:1282)
          org.apache.pdfbox.pdfparser.BaseParser.readObjectNumber(BaseParser.java:1217)
          org.apache.pdfbox.pdfparser.BruteForceParser.bfSearchForObjects(BruteForceParser.java:149)
          org.apache.pdfbox.pdfparser.BruteForceParser.<init>(BruteForceParser.java:89)
          org.apache.pdfbox.pdfparser.COSParser.getBruteForceParser(COSParser.java:1333)
          org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:254)
          org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:127)
          org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180)
          org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:154)
          org.apache.pdfbox.Loader.loadPDF(Loader.java:344)
          org.apache.pdfbox.Loader.loadPDF(Loader.java:317)
          org.apache.pdfbox.Loader.loadPDF(Loader.java:260)
          org.apache.pdfbox.debugger.PDFDebugger$3.open(PDFDebugger.java:1285)
          org.apache.pdfbox.debugger.PDFDebugger$DocumentOpener.parse(PDFDebugger.java:1413)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1292)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1261)
          org.apache.pdfbox.debugger.PDFDebugger.access$400(PDFDebugger.java:151)
          org.apache.pdfbox.debugger.PDFDebugger$5.actionPerformed(PDFDebugger.java:1451)
          java.base/java.security.AccessController.doPrivileged(Native Method)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
          java.base/java.security.AccessController.doPrivileged(Native Method)
          java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      

      Attachments

        1. GHOSTSCRIPT-695040-0.zip-73.pdf
          11 kB
          Andreas Lehmkühler

        Activity

          People

            lehmi Andreas Lehmkühler
            lehmi Andreas Lehmkühler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: