summaryrefslogtreecommitdiff
path: root/third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch')
-rw-r--r--third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch b/third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch
new file mode 100644
index 0000000000..dce315257d
--- /dev/null
+++ b/third_party/lcms/0004-old-uninitialized-in-LUTeval16.patch
@@ -0,0 +1,13 @@
+diff --git a/third_party/lcms/src/cmslut.c b/third_party/lcms/src/cmslut.c
+index 45f05c61d..18b88a545 100644
+--- a/third_party/lcms/src/cmslut.c
++++ b/third_party/lcms/src/cmslut.c
+@@ -1295,7 +1295,7 @@ void _LUTeval16(register const cmsUInt16Number In[], register cmsUInt16Number Ou
+ {
+ cmsPipeline* lut = (cmsPipeline*) D;
+ cmsStage *mpe;
+- cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS];
++ cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS] = {0.0f};
+ int Phase = 0, NextPhase;
+
+ From16ToFloat(In, &Storage[Phase][0], lut ->InputChannels);