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