diff options
author | Oliver Chang <ochang@chromium.org> | 2016-11-28 15:46:15 -0800 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2016-11-28 15:46:15 -0800 |
commit | f4145df3f36aeb10d78d6b4ba9f06ca2270e5e37 (patch) | |
tree | 5727ca0848adf959cc5458f08226f3888cdc27fb /core/fxcodec/jbig2/JBig2_GsidProc.cpp | |
parent | dad0707d0e7ea3f612dd14a5e35b5af163cedf82 (diff) | |
download | pdfium-chromium/2883.tar.xz |
M55: pdfium: Fix inconsistent number of color components of ICC profilechromium/2883
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
Original-Review-Url: https://codereview.chromium.org/2522933002
(cherry picked from commit 89a2d92549d25df6786d53de5671eb141e1fd3e2)
TBR=thestig@chromium.org,tsepez@chromium.org
Review URL: https://codereview.chromium.org/2535663005 .
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_GsidProc.cpp')
0 files changed, 0 insertions, 0 deletions