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

Unified Diff: core/fpdfapi/fpdf_parser/cpdf_document.cpp

Issue 2003873002: Fix infinite recursion in CPDF_DocPageData::GetColorSpace(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 7 months 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 | « core/fpdfapi/fpdf_page/pageint.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
index 13d9737b5b134a79d327b0b597554c8221e9b7b4..79965a23bbf53cd009634a9faffff1623c87902f 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp
+++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
@@ -394,9 +394,10 @@ int InsertDeletePDFPage(CPDF_Document* pDoc,
} else {
int nPages = pKid->GetIntegerBy("Count");
if (nPagesToGo < nPages) {
- if (pdfium::ContainsValue(*pVisited, pKid))
+ if (pdfium::ContainsKey(*pVisited, pKid))
return -1;
- pdfium::ScopedSetInsertion<CPDF_Dictionary*>(pVisited, pKid);
+
+ pdfium::ScopedSetInsertion<CPDF_Dictionary*> insertion(pVisited, pKid);
Lei Zhang 2016/05/23 16:23:20 Umm, not sure what happened here.
Tom Sepez 2016/05/23 16:33:04 Argh. Well, at least it existed until the ; at eo
if (InsertDeletePDFPage(pDoc, pKid, nPagesToGo, pPage, bInsert,
pVisited) < 0) {
return -1;
« no previous file with comments | « core/fpdfapi/fpdf_page/pageint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698