summaryrefslogtreecommitdiff
path: root/third_party/libjpeg/jinclude.h
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2016-11-28 15:46:15 -0800
committerOliver Chang <ochang@chromium.org>2016-11-28 15:46:15 -0800
commitf4145df3f36aeb10d78d6b4ba9f06ca2270e5e37 (patch)
tree5727ca0848adf959cc5458f08226f3888cdc27fb /third_party/libjpeg/jinclude.h
parentdad0707d0e7ea3f612dd14a5e35b5af163cedf82 (diff)
downloadpdfium-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 'third_party/libjpeg/jinclude.h')
0 files changed, 0 insertions, 0 deletions