You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/01/17 17:13:26 UTC

[jira] [Closed] (PDFBOX-3645) Probably not handling header read on bad PDFs

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

Tilman Hausherr closed PDFBOX-3645.
-----------------------------------
    Resolution: Not A Problem

Ok, thanks, I'm closing this one as not a problem per my argument above. You can still comment or reopen :-)

> Probably not handling header read on bad PDFs
> ---------------------------------------------
>
>                 Key: PDFBOX-3645
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3645
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.4
>            Reporter: G. Ralph Kuntz
>            Priority: Minor
>
> In COSParser.parseHeader, the code on line 1893 tries to handle PDFs where the version number is split on a separate line from the "%PDF-". It assigns the newly read line to `header`, detects a line that starts with a digit, then breaks.
> On line 1902, the code tries again to match the header "%PDF-xxx", but will not succeed in the case where the version was on a separate line, because `header` will contain only the version number and not the leading `%PDF-`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org