commit | 239955073722582152d9ab190794317dd775a1c1 | [log] [tgz] |
---|---|---|
author | Bo Xu <bo_xu@foxitsoftware.com> | Thu Dec 11 14:24:35 2014 -0800 |
committer | Bo Xu <bo_xu@foxitsoftware.com> | Thu Dec 11 14:24:35 2014 -0800 |
tree | 0cd013ba7f23c9af499963d3e079bb96930ebefb | |
parent | 869517236c27b92b7060da7f44a0b01e252e8211 [diff] |
m_pColorSpace can not be NULL for image object with DCTDecode filter BUG=411842 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/792113003
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp index f053e55..1637655 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
@@ -504,6 +504,9 @@ } DIB_COMP_DATA* CPDF_DIBSource::GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColorKey) { + if (m_pColorSpace == NULL) { + return NULL; + } DIB_COMP_DATA* pCompData = FX_Alloc(DIB_COMP_DATA, m_nComponents); if (pCompData == NULL) { return NULL;