diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-05-26 16:44:58 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-05-26 16:44:58 +0100 |
commit | aed1756f6098e5de5341f131dea13af7fccec70c (patch) | |
tree | f0dfcf1e86d1dd8b157afea19886a5923a688a9a /pdf/pdf_xref.c | |
parent | 3d5b3cadbad34ec54a6bc1de6e7d4fef678dab40 (diff) | |
download | ghostpdl-aed1756f6098e5de5341f131dea13af7fccec70c.tar.gz |
GhostPDF - fix typo in earlier commit
Commit 3d5b3cadbad34ec54a6bc1de6e7d4fef678dab40 had a silly typo in the
20 byte xref check, which caused it to fail with perfectly valid files.
There would not have been any rendering differences, since this was only
a warning, but it did flag warnings incorrectly.
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r-- | pdf/pdf_xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 61b02b5b2..6b9c3eea8 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -726,7 +726,7 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio if (bytes < 20) return_error(gs_error_ioerror); j = 19; - if (Buffer[19] != 0x0a || (Buffer[18] != 0x0d && Buffer[17] != 0x20)) + if (Buffer[19] != 0x0a || (Buffer[18] != 0x0d && Buffer[18] != 0x20)) pdfi_set_warning(ctx, 0, NULL, W_PDF_BAD_XREF_ENTRY_SIZE, "read_xref_section", NULL); while (Buffer[j] != 0x0D && Buffer[j] != 0x0A) { pdfi_unread_byte(ctx, s, (byte)Buffer[j]); |