Roll skcms from 7e711e0a4467 to 7e572ada698a (1 revision)

https://skia.googlesource.com/skcms.git/+log/7e711e0a4467..7e572ada698a

2026-10-01 hocheung@chromium.org Fix skcms build with Clang 22

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC egdaniel@google.com,kjlubick@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

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

Cq-Include-Trybots: skia/skia.primary:Canary-Chromium
Tbr: egdaniel@google.com,kjlubick@google.com
Change-Id: Id0fed0c8da3740f71fa1301910195c4231cf2d3e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1380118
Bot-Commit: skia-autoroll@skia-public.iam.gserviceaccount.com <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll@skia-public.iam.gserviceaccount.com <skia-autoroll@skia-public.iam.gserviceaccount.com>
diff --git a/modules/skcms/README.chromium b/modules/skcms/README.chromium
index 568f78d..e960ed5 100644
--- a/modules/skcms/README.chromium
+++ b/modules/skcms/README.chromium
@@ -1,7 +1,7 @@
 Name: skcms
 URL: https://skia.googlesource.com/skcms
 Version: N/A
-Revision: 7e711e0a4467b5844f8de27ef43b680aecc6d287
+Revision: 7e572ada698a60ff50bd9038fd6e01e44f40868a
 Update Mechanism: Autoroll
 Security Critical: yes
 Shipped: yes
diff --git a/modules/skcms/skcms.cc b/modules/skcms/skcms.cc
index e758590..79dbecf 100644
--- a/modules/skcms/skcms.cc
+++ b/modules/skcms/skcms.cc
@@ -1351,7 +1351,7 @@
 
 void skcms_GetTagByIndex(const skcms_ICCProfile* profile, uint32_t idx, skcms_ICCTag* tag) {
     if (!profile || !profile->buffer || !tag) { return; }
-    if (idx >= profile->tag_count) { return; }
+    if (idx > profile->tag_count) { return; }
     const tag_Layout* tags = get_tag_table(profile);
     tag->signature = read_big_u32(tags[idx].signature);
     tag->size      = read_big_u32(tags[idx].size);
@@ -2525,7 +2525,7 @@
 
 struct OpAndArg {
     Op          op;
-    const void* arg;
+    const void* arg;  // nullptr represents a no-op; op is ignored.
 };
 
 static OpAndArg select_curve_op(const skcms_Curve* curve, int channel) {
@@ -2541,22 +2541,22 @@
     const auto& op = kOps[channel];
 
     if (curve->table_entries == 0) {
-        const OpAndArg noop = { Op::load_a8/*doesn't matter*/, nullptr };
-
         const skcms_TransferFunction& tf = curve->parametric;
 
         if (tf_is_gamma(tf)) {
-            return tf.g != 1 ? OpAndArg{op.sGamma, &tf}
-                             : noop;
+            return tf.g != 1 ? OpAndArg{op.sGamma, &tf} : OpAndArg{};
         }
 
         switch (classify(tf)) {
-            case skcms_TFType_Invalid:    return noop;
+            case skcms_TFType_Invalid:
+                return {};
             // TODO(https://issues.skia.org/issues/420956739): Consider adding
             // support for PQ and HLG. Generally any code that goes through this
             // path would also want tone mapping too.
-            case skcms_TFType_PQ:         return noop;
-            case skcms_TFType_HLG:        return noop;
+            case skcms_TFType_PQ:
+                return {};
+            case skcms_TFType_HLG:
+                return {};
             case skcms_TFType_sRGBish:    return OpAndArg{op.sRGBish,   &tf};
             case skcms_TFType_PQish:      return OpAndArg{op.PQish,     &tf};
             case skcms_TFType_HLGish:     return OpAndArg{op.HLGish,    &tf};
diff --git a/modules/skcms/version.sha1 b/modules/skcms/version.sha1
index 0a91957..973b015 100755
--- a/modules/skcms/version.sha1
+++ b/modules/skcms/version.sha1
@@ -1 +1 @@
-7e711e0a4467b5844f8de27ef43b680aecc6d287
+7e572ada698a60ff50bd9038fd6e01e44f40868a