Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1550753002: Change the generation number from 65536 to 65535 in the free entry of cross-reference table (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
index 95415b18d1e6b81e1871467245d937b1997f8bd3..8c3defde832dd909baa3557c2a253f46fdef5d29 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698