Fix uninitialized Storage
authorfoxit <jun_fang@foxitsoftware.com>
Thu, 10 Jul 2014 20:36:32 +0000 (13:36 -0700)
committerfoxit <jun_fang@foxitsoftware.com>
Thu, 10 Jul 2014 20:36:32 +0000 (13:36 -0700)
BUG=387843
R=palmer@chromium.org

Review URL: https://codereview.chromium.org/380293002

core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c

index c4f9346..a81811c 100644 (file)
@@ -1305,7 +1305,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));