Fix uninitialized Storage in _LUTeval16
authorfoxit <jun_fang@foxitsoftware.com>
Mon, 14 Jul 2014 21:46:37 +0000 (14:46 -0700)
committerfoxit <jun_fang@foxitsoftware.com>
Mon, 14 Jul 2014 21:46:37 +0000 (14:46 -0700)
BUG=387826
R=palmer@chromium.org

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

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

index a81811c..73e6726 100644 (file)
@@ -1279,7 +1279,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);