From 14da3986ba7406dc973f15f15d62ee41490b725e Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 29 Dec 2015 09:59:51 +0800 Subject: Merge to XFA: Change the generation number in the free entry of cross-reference table BUG=pdfium:342 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1550753002 . Review URL: https://codereview.chromium.org/1552633002 . --- core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp index 95415b18d1..8c3defde83 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp @@ -1636,7 +1636,7 @@ int32_t CPDF_Creator::WriteDoc_Stage3(IFX_Pause* pPause) { CFX_ByteString str; str = m_ObjectOffset.GetPtrAt(1) ? "xref\r\n" - : "xref\r\n0 1\r\n0000000000 65536 f\r\n"; + : "xref\r\n0 1\r\n0000000000 65535 f\r\n"; if (m_File.AppendString(str) < 0) { return -1; } @@ -1668,7 +1668,7 @@ int32_t CPDF_Creator::WriteDoc_Stage3(IFX_Pause* pPause) { j++; } if (i == 1) { - str.Format("0 %d\r\n0000000000 65536 f\r\n", j); + str.Format("0 %d\r\n0000000000 65535 f\r\n", j); } else { str.Format("%d %d\r\n", i, j - i); } @@ -1710,7 +1710,7 @@ int32_t CPDF_Creator::WriteDoc_Stage3(IFX_Pause* pPause) { } objnum = m_NewObjNumArray.ElementAt(i); if (objnum == 1) { - str.Format("0 %d\r\n0000000000 65536 f\r\n", j - i + 1); + str.Format("0 %d\r\n0000000000 65535 f\r\n", j - i + 1); } else { str.Format("%d %d\r\n", objnum, j - i); } -- cgit v1.2.3