Fix for Fuzzer when AtoBType profiles are empty.
authorraftias <raftias@google.com>
Thu, 1 Dec 2016 21:40:51 +0000 (16:40 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 1 Dec 2016 22:22:45 +0000 (22:22 +0000)
commit2bb3592868b0cbca404fc263511728c9f5508ddb
tree24f1fce25d093914f1916a86bf9e2b296fe70fa3
parent5e15961fa77281540a80ac0d036fefe071c11574
Fix for Fuzzer when AtoBType profiles are empty.

When all A/B/M-curves, the matrix and the CLUT were not there it would
crash. There is now a check to avoid that. Past this point it should not
be an empty, as SkColorSpaceXform did not make such an assumption.

BUG=skia:6023

Change-Id: I099bcef7efac100d438a30bf59d9c170119b8545
Reviewed-on: https://skia-review.googlesource.com/5480
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Robert Aftias <raftias@google.com>
src/core/SkColorSpace_ICC.cpp