diff options
author | Oliver Chang <ochang@chromium.org> | 2015-10-28 11:49:02 -0700 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2015-10-28 11:49:02 -0700 |
commit | 55ed2880e9d19e79717063b117aa5eee40dd454b (patch) | |
tree | 9a50ff8700d59179838de8ed682e623f4ec9ec1d /core/src/fpdfapi | |
parent | 5a4af03849c8389872cd6908222df4c4e7f99ca8 (diff) | |
download | pdfium-55ed2880e9d19e79717063b117aa5eee40dd454b.tar.xz |
Add a NULL check in pdf_page_colors.cpp
R=thestig@chromium.org
BUG=548714
Review URL: https://codereview.chromium.org/1430653002 .
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp index bed3cfbb2c..e4bb1a3d10 100644 --- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp @@ -327,6 +327,9 @@ class CPDF_CalGray : public CPDF_ColorSpace { FX_BOOL CPDF_CalGray::v_Load(CPDF_Document* pDoc, CPDF_Array* pArray) { CPDF_Dictionary* pDict = pArray->GetDict(1); + if (!pDict) + return FALSE; + CPDF_Array* pParam = pDict->GetArray(FX_BSTRC("WhitePoint")); int i; for (i = 0; i < 3; i++) { |