summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-12-29 09:48:42 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-12-29 09:48:42 +0800
commit1134cc9f56c85d13ec14eaa78726ef02121cb18c (patch)
tree4568cf90c651cc2babecab09d04034e18e2381b2 /core/src
parentde0387c3690ca147482ed943c70eeb828b6dd732 (diff)
downloadpdfium-1134cc9f56c85d13ec14eaa78726ef02121cb18c.tar.xz
Change the generation number from 65536 to 65535 in the free entry of cross-reference table
BUG=pdfium:342 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1550753002 .
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);
}