[
https://issues.apache.org/jira/browse/PDFBOX-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736085#action_12736085
]
Vladimir Dyuzhev commented on PDFBOX-496:
-----------------------------------------
And, I have to add, it consumes 100% CPU!
> 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.