[
https://issues.apache.org/jira/browse/PDFBOX-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180218#comment-13180218
]
Andreas Lehmkühler commented on PDFBOX-1196:
--------------------------------------------
I applied similar changes to the affected preflight classes in revision 1227500
> Object offsets should be of type long + PATCH
> ---------------------------------------------
>
> Key: PDFBOX-1196
> URL: https://issues.apache.org/jira/browse/PDFBOX-1196
> Project: PDFBox
> Issue Type: Improvement
> Components: Parsing
> Affects Versions: 1.6.0
> Reporter: Timo Boehme
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: 2011-12-23_long-obj-offset.patch
>
>
> Currently object offsets are stored as integer (32 bit). However the PDF
> specification does not limit a PDF document to 2GB. The only restriction is
> the XREF table which supports 10 digit values for object offsets. Thus we
> could have offsets >2GB (<10GB). The attached patch changes all locations (as
> far as I could find them) dealing with object offsets to long type.
> Since this is a rather small change which should not have greater
> performance/space impact I recommend to include it. Otherwise we would have
> to include checks that the parsed file is smaller then Integer.MAX_VALUE.
--
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