Roll skia/third_party/skcms cc1799c..02fc32e (1 commits)

https://skia.googlesource.com/skcms.git/+log/cc1799c..02fc32e

2018-05-04 mtklein@chromium.org pull in roundtrip thresholds much more tightly


The AutoRoll server is located here: https://skcms-skia-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.



CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
TBR=brianosman@google.com

Change-Id: If327b95b8d9b81e95b3047f9f9499d6282aa4dee
Reviewed-on: https://skia-review.googlesource.com/125942
Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
diff --git a/third_party/skcms/src/PolyTF.c b/third_party/skcms/src/PolyTF.c
index 62da2d4..6ffbc50 100644
--- a/third_party/skcms/src/PolyTF.c
+++ b/third_party/skcms/src/PolyTF.c
@@ -149,7 +149,7 @@
 
         float rt = skcms_TransferFunction_eval(&inv, eval_poly_tf(x, A,B,C,D))
                  * (N-1) + 0.5f;
-        if (!isfinitef_(rt) || rt > INT_MAX || rt < -INT_MAX) {
+        if (!isfinitef_(rt) || rt >= N || rt < 0) {
             return false;
         }
 
diff --git a/third_party/skcms/version.sha1 b/third_party/skcms/version.sha1
index 9cabfc9..8ba237c 100755
--- a/third_party/skcms/version.sha1
+++ b/third_party/skcms/version.sha1
@@ -1 +1 @@
-cc1799c6b4fce905ad3810924d1a1a73b10ec230
\ No newline at end of file
+02fc32ea7f43008fd55a5fa0c12e43596aee4cd9
\ No newline at end of file