You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Vladimir Dyuzhev (JIRA)" <ji...@apache.org> on 2009/07/28 16:24:14 UTC
[jira] Created: (PDFBOX-496) PDDocument.load hangs when loading
zero-length file
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.
[jira] Resolved: (PDFBOX-496) PDDocument.load hangs when loading
zero-length file
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (PDFBOX-496) PDDocument.load hangs when loading
zero-length file
Posted by "Vladimir Dyuzhev (JIRA)" <ji...@apache.org>.
[ 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.