summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_pageview.cpp
diff options
context:
space:
mode:
authorkcwu <kcwu@chromium.org>2016-11-22 11:37:16 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-22 11:37:16 -0800
commit89a2d92549d25df6786d53de5671eb141e1fd3e2 (patch)
treea6d5cffa609b4dee96f3aa3e2b47ff9d123cc818 /fpdfsdk/cpdfsdk_pageview.cpp
parent1aff265f7a210738fc817675c4391f8fe240b81d (diff)
downloadpdfium-89a2d92549d25df6786d53de5671eb141e1fd3e2.tar.xz
pdfium: Fix inconsistent number of color components of ICC profile
fx_codec_icc.cpp specify default number of color components as 3 for unknown profiles. However, lcms may know such profile with different number of components. The inconsistency may lead to array access violation. This CL uses cmsChannelsOf() from lcms to ensure consistency. And rejects unexpected number according to PDF spec. BUG=chromium:667694 Review-Url: https://codereview.chromium.org/2522933002
Diffstat (limited to 'fpdfsdk/cpdfsdk_pageview.cpp')
0 files changed, 0 insertions, 0 deletions