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

PDDocument.load hangs when loading zero-length file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0-incubator
    • 0.8.0-incubator
    • Swing GUI
    • None

    Description

      If a file passed to PDDocument.load() has zero-length (e.g. got truncated during transmission over the net), the method hangs forever.

      Expected behaviour: throw an exception indicating it's not a PDF file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vladimir.dyuzhev Vladimir Dyuzhev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: