summaryrefslogtreecommitdiff
path: root/third_party/lcms/0009-uninit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lcms/0009-uninit.patch')
-rw-r--r--third_party/lcms/0009-uninit.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/lcms/0009-uninit.patch b/third_party/lcms/0009-uninit.patch
new file mode 100644
index 0000000000..e9538c1f22
--- /dev/null
+++ b/third_party/lcms/0009-uninit.patch
@@ -0,0 +1,23 @@
+npm@npm0:~/pdfium/pdfium/third_party/lcms$ git diff src/cmstypes.c
+diff --git a/third_party/lcms/src/cmstypes.c b/third_party/lcms/src/cmstypes.c
+index cb618600a..2a0ea9448 100644
+--- a/third_party/lcms/src/cmstypes.c
++++ b/third_party/lcms/src/cmstypes.c
+@@ -2966,7 +2966,7 @@ void *Type_ColorantTable_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER
+ {
+ cmsUInt32Number i, Count;
+ cmsNAMEDCOLORLIST* List;
+- char Name[34];
++ char Name[33];
+ cmsUInt16Number PCS[3];
+
+
+@@ -2981,7 +2981,7 @@ void *Type_ColorantTable_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER
+ for (i=0; i < Count; i++) {
+
+ if (io ->Read(io, Name, 32, 1) != 1) goto Error;
+- Name[33] = 0;
++ Name[32] = 0;
+
+ if (!_cmsReadUInt16Array(io, 3, PCS)) goto Error;
+