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:13:23 UTC

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

Timo Boehme created PDFBOX-1334:
-----------------------------------

             Summary: 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


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

        

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

Posted by "Timo Boehme (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Timo Boehme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Boehme closed PDFBOX-1334.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8.0

patch applied in rev. 1346902
                
> 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
>             Fix For: 1.8.0
>
>         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