donald7771 / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

memory requirement propotional to highest object number, not number of objects. #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From fpdf_parserh.h, the following are all contiguous arrays indexed by object 
number:

    CFX_FileSizeArray   m_CrossRef;
    CFX_ByteArray       m_V5Type;
    CFX_FileSizeArray   m_SortedOffset;
    CFX_WordArray       m_ObjVersion;

Soo ... should your pdf happen to contain large sparse object numbers, the size 
of these will bloat. Unclear if any document generators actually produce such 
documents.

Original issue reported on code.google.com by tsepez@chromium.org on 26 Jan 2015 at 8:53