[ https://issues.apache.org/jira/browse/PDFBOX-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109343#comment-14109343 ]
John Hewson edited comment on PDFBOX-2250 at 8/25/14 5:28 PM: -------------------------------------------------------------- Yeah, the end result is the same though: we do allow an object at offset 0. It's not clear whether the Adobe supplement means for objects at offset 0 to be legal or not, I guess the real question is whether or not such documents exist. I'm fairly skeptical, as you say it's usually "rubbish" which is at the start of a malformed file. was (Author: jahewson): Allowing "rubbish in front of the file header" is _almost_ the same construct, as even in malformed documents the header is usually at the beginning of a line. The end result is the same though: we do allow an object at offset 0. It's not clear whether the Adobe supplement means for objects at offset 0 to be legal or not, I guess the real question is whether or not such documents exist. I'm fairly skeptical, as you say it's usually "rubbish" which is at the start of a malformed file. > Improve XRef self healing mechanism > ----------------------------------- > > Key: PDFBOX-2250 > URL: https://issues.apache.org/jira/browse/PDFBOX-2250 > Project: PDFBox > Issue Type: Improvement > Components: Parsing > Affects Versions: 1.8.6, 1.8.7, 2.0.0 > Reporter: Andreas Lehmkühler > Assignee: Andreas Lehmkühler > Attachments: PDFBOX-2250-107425-empty-xref.pdf, > PDFBOX-2250-110264-xref-zeronumber.pdf > > > PDFBOX-1769 introduced a "self healing" mechanism to repair corrupt XRef > offsets. But that one was just a starter and there remain a lot of issues to > be solved. I'm planing to solve at least some of them. > All fixes and improvements are targeting the non-sequential parser and I > won't port those changes to the old parser. -- This message was sent by Atlassian JIRA (v6.2#6252)