summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/pageint.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-23 10:07:03 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-23 10:07:03 -0700
commit885bba0b002e2a70e7808e65a53d6f977ddccd95 (patch)
tree7b42aa224a15dc91ed79cbe8da8fcca7d5c1ccbc /core/fpdfapi/fpdf_page/pageint.h
parenta55880db9272d2ad98ce600efbf068408e8fcf15 (diff)
downloadpdfium-885bba0b002e2a70e7808e65a53d6f977ddccd95.tar.xz
Fix infinite recursion in CPDF_DocPageData::GetColorSpace().
BUG=pdfium:497 Review-Url: https://codereview.chromium.org/2003873002
Diffstat (limited to 'core/fpdfapi/fpdf_page/pageint.h')
-rw-r--r--core/fpdfapi/fpdf_page/pageint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_page/pageint.h b/core/fpdfapi/fpdf_page/pageint.h
index 64d106f1dc..b884338f76 100644
--- a/core/fpdfapi/fpdf_page/pageint.h
+++ b/core/fpdfapi/fpdf_page/pageint.h
@@ -10,6 +10,7 @@
#include <map>
#include <memory>
#include <unordered_map>
+#include <set>
#include <vector>
#include "core/fpdfapi/fpdf_page/cpdf_contentmark.h"
@@ -356,6 +357,10 @@ class CPDF_DocPageData {
using CPDF_ImageMap = std::map<uint32_t, CPDF_CountedImage*>;
using CPDF_PatternMap = std::map<CPDF_Object*, CPDF_CountedPattern*>;
+ CPDF_ColorSpace* GetColorSpaceImpl(CPDF_Object* pCSObj,
+ const CPDF_Dictionary* pResources,
+ std::set<CPDF_Object*>* pVisited);
+
CPDF_Document* const m_pPDFDoc;
FX_BOOL m_bForceClear;
std::map<CFX_ByteString, CPDF_Stream*> m_HashProfileMap;