diff options
author | kcwu <kcwu@chromium.org> | 2016-11-22 11:37:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-22 11:37:16 -0800 |
commit | 89a2d92549d25df6786d53de5671eb141e1fd3e2 (patch) | |
tree | a6d5cffa609b4dee96f3aa3e2b47ff9d123cc818 /core/fxge/ge/cfx_facecache.cpp | |
parent | 1aff265f7a210738fc817675c4391f8fe240b81d (diff) | |
download | pdfium-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 'core/fxge/ge/cfx_facecache.cpp')
0 files changed, 0 insertions, 0 deletions