summaryrefslogtreecommitdiff
path: root/third_party/lcms2-2.6/0000-tag-type-confusion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lcms2-2.6/0000-tag-type-confusion.patch')
-rw-r--r--third_party/lcms2-2.6/0000-tag-type-confusion.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/lcms2-2.6/0000-tag-type-confusion.patch b/third_party/lcms2-2.6/0000-tag-type-confusion.patch
new file mode 100644
index 0000000000..df94cb7bfe
--- /dev/null
+++ b/third_party/lcms2-2.6/0000-tag-type-confusion.patch
@@ -0,0 +1,14 @@
+diff --git a/third_party/lcms2-2.6/src/cmsio0.c b/third_party/lcms2-2.6/src/cmsio0.c
+index 6549d15..5f9f08a 100644
+--- a/third_party/lcms2-2.6/src/cmsio0.c
++++ b/third_party/lcms2-2.6/src/cmsio0.c
+@@ -719,7 +719,8 @@ cmsBool _cmsReadHeader(_cmsICCPROFILE* Icc)
+ for (j=0; j < Icc ->TagCount; j++) {
+
+ if ((Icc ->TagOffsets[j] == Tag.offset) &&
+- (Icc ->TagSizes[j] == Tag.size)) {
++ (Icc ->TagSizes[j] == Tag.size) &&
++ (Icc ->TagNames[j] == Tag.sig)) {
+
+ Icc ->TagLinked[Icc ->TagCount] = Icc ->TagNames[j];
+ }