diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-12-08 13:13:24 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-12-08 13:13:24 +0000 |
commit | 80e70b5fa12e5bfa63bb5e1eb56dcdaa4a5ff7da (patch) | |
tree | 48e0bf692a9c08831b668e660f4ec5b4993718a3 /pdf/pdf_errors.h | |
parent | 15ea97358ef5d217907008b1052db4a02f6c62f8 (diff) | |
download | ghostpdl-80e70b5fa12e5bfa63bb5e1eb56dcdaa4a5ff7da.tar.gz |
GhostPDF - Detect errors in XRefStm value in Hybrid files
If a hybrid file (one with an xref and an XRefStm) XRefStm value in the
trailer dictionary did not point to a valid cross reference stream
dictionary we were silently ignoring the error.
Report the error at end of job.
Diffstat (limited to 'pdf/pdf_errors.h')
-rw-r--r-- | pdf/pdf_errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf/pdf_errors.h b/pdf/pdf_errors.h index 9bd0741cb..e2f17f247 100644 --- a/pdf/pdf_errors.h +++ b/pdf/pdf_errors.h @@ -71,4 +71,5 @@ PARAM(E_PDF_DICT_IS_STREAM, "Expected a dictionary but encountered a PARAM(E_PDF_BAD_TYPE, "An object is of the wrong type"), PARAM(E_PDF_BAD_VALUE, "An object has an unexpected value"), PARAM(E_PDF_BAD_ANNOTATION, "There was an error in an annotation"), +PARAM(E_PDF_BAD_XREFSTMOFFSET, "An XRefStm value did not point to a cross reference stream"), #undef PARAM |