Descriptionpdfium: 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
Committed: https://pdfium.googlesource.com/pdfium/+/89a2d92549d25df6786d53de5671eb141e1fd3e2
Patch Set 1 : . #
Messages
Total messages: 11 (5 generated)
|