diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-12-11 14:09:15 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-12-13 21:38:26 +0100 |
commit | 55c3f68d638ac1263a386e0aaa004bb6e8bde731 (patch) | |
tree | 27fd12c9cea4acc2718674b47cda3c029c490e11 /include | |
parent | c7a470081787cb85e6997dd611f24bfb280d55c2 (diff) | |
download | mupdf-55c3f68d638ac1263a386e0aaa004bb6e8bde731.tar.xz |
Bugs 698804/698810/698811: Keep PDF object numbers below limit.
This ensures that:
* xref tables with objects pointers do not grow out of bounds.
* other readers, e.g. Adobe Acrobat can parse PDFs written by mupdf.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index 21ed8595..4177112b 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -3,6 +3,9 @@ typedef struct pdf_document_s pdf_document; +/* Defined in PDF 1.7 according to Acrobat limit. */ +#define PDF_MAX_OBJECT_NUMBER 8388607 + /* * Dynamic objects. * The same type of objects as found in PDF and PostScript. |