summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-12-29 09:59:51 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-12-29 09:59:51 +0800
commit14da3986ba7406dc973f15f15d62ee41490b725e (patch)
tree4745b11cb5c2d89f7c9d81790a84e4c3f2c1ec74 /core/src
parentd77f03faf713c071846cf178b3cf801b230db930 (diff)
downloadpdfium-14da3986ba7406dc973f15f15d62ee41490b725e.tar.xz
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 .
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}