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

Timo Boehme closed PDFBOX-1333.
-------------------------------

    Resolution: Fixed

fixed by applying patch in rev. 1346891
                
> Stream parsing of BaseParser should fall back to scanning if length value is 
> wrong
> ----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1333
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1333
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 1.7.0
>            Reporter: Timo Boehme
>            Assignee: Timo Boehme
>             Fix For: 1.8.0
>
>         Attachments: 2012-06-06_BaseParser_streamFallBack.patch
>
>
> In 1.7.0 stream parsing in BaseParser was optimized to use length value if 
> available. The advantage is faster parsing and independence of 'endstream' 
> bytes sequences in stream. However the disadvantage is that streams with 
> wrong length values cannot be parsed anymore (see PDFBOX-1331).
> To solve this we should check if 'endstream' is really reached when using 
> length value and if not, fall back to 'old' behavior of reading stream until 
> 'endstream' is found.

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

        

Reply via email to