PDDocument.load hangs when loading zero-length file
---------------------------------------------------

                 Key: PDFBOX-496
                 URL: https://issues.apache.org/jira/browse/PDFBOX-496
             Project: PDFBox
          Issue Type: Bug
          Components: PDFReader
    Affects Versions: 0.8.0-incubator
            Reporter: Vladimir Dyuzhev


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to