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

NullPointerException in COSParser

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.12
    • Fix Version/s: 2.0.13, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None

      Description

      Fuzzing PDF loading with JQF triggered a NullPointerException.

      java.lang.NullPointerException
      	at org.apache.pdfbox.pdfparser.COSParser.checkPagesDictionary(COSParser.java:2345)
      	at org.apache.pdfbox.pdfparser.COSParser.checkPages(COSParser.java:2321)
      	at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:193)
      	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:220)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1160)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1057)
          ...
      
      

      The Code used for fuzzing is

      PDDocument.load(inputStream)
      

        Attachments

        1. NullPointerException COSParser
          0.2 kB
          Robin Schimpf

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              rschimpf Robin Schimpf
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: