You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Timo Boehme (JIRA)" <ji...@apache.org> on 2012/06/06 16:15:22 UTC

[jira] [Updated] (PDFBOX-1334) EmptyStackException in PDFStreamEngine.getFonts

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

Timo Boehme updated PDFBOX-1334:
--------------------------------

    Attachment: 2012-06-06_PDFStreamEngine_emptyStackTest.patch

patch with test for empty stack
                
> EmptyStackException in PDFStreamEngine.getFonts
> -----------------------------------------------
>
>                 Key: PDFBOX-1334
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1334
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.7.0
>            Reporter: Timo Boehme
>            Assignee: Timo Boehme
>            Priority: Minor
>         Attachments: 2012-06-06_PDFStreamEngine_emptyStackTest.patch
>
>
> Method getFonts in PDFStreamEngine does not test for empty streamResourceStack and might throw an EmptyStackException which is not catched (RuntimeException) by calling classes. We have to test for empty stack and return empty map in such cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira