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
            Priority: Minor


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

        

Reply via email to