[ 
https://issues.apache.org/jira/browse/PDFBOX-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler resolved PDFBOX-496.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.0-incubator

This issue is resolved with PDFBOX-503. If a pdf document with zero length is 
loaded pdfbox will throw an IOException.

> 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
>             Fix For: 0.8.0-incubator
>
>
> 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