Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c

Issue 387273002: Fix uninitialized Storage in _LUTeval16 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
diff --git a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
index a81811cb9faa3073afb0d3e3314c9db5bb65c93b..73e6726bf435361920f3d14719ed1728f640931e 100644
--- a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
+++ b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698