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

ArrayIndexOutOfBoundsException in PDFXrefStreamParser.parseValue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.22, 3.0.0 PDFBox
    • Fix Version/s: 2.0.23, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None

      Description

      The attached (broken) PDF throws the following undeclared exception when loaded via Loader.loadPDF (using current Git revision 275c77953ec8c2c896f9085b3508bef2c4d00d2f):

      java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
      at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parseValue(PDFXrefStreamParser.java:176)
      at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parse(PDFXrefStreamParser.java:152)
      at org.apache.pdfbox.pdfparser.COSParser.parseXrefStream(COSParser.java:2451)
      at org.apache.pdfbox.pdfparser.COSParser.parseXrefObjStream(COSParser.java:444)
      at org.apache.pdfbox.pdfparser.COSParser.parseXref(COSParser.java:391)
      at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:238)
      at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:127)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:154)
      at org.apache.pdfbox.Loader.loadPDF(Loader.java:204)
      at com.example.PdfBoxFuzzer.fuzzerTestOneInput(PdfBoxFuzzer.java:31)

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              Meumertzheim Fabian Meumertzheim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: