G. Ralph Kuntz created PDFBOX-3645:
--------------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]