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

NPE in Type1Parser.parseBinary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
    • 2.0.2, 3.0.0 PDFBox
    • FontBox
    • None

    Description

      NPE happens in this code if the content is crap, because peekToken() can be null:

              // find /Private dict
              while (!lexer.peekToken().getText().equals("Private"))
              {
                  lexer.nextToken();
              }
      

      Attachments

        1. PDFBOX-3348-058289-p1.pdf
          17 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: