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

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

Issue 380293002: Fix uninitialized array in color management. (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 c4f93467cabf8d856c37bff2a7636be93d1759a3..a81811cb9faa3073afb0d3e3314c9db5bb65c93b 100644
--- a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
+++ b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmslut.c
@@ -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};
palmer 2014/07/10 18:54:16 I don't think you can initialize a 2-dimensional a
int Phase = 0, NextPhase;
memmove(&Storage[Phase][0], In, lut ->InputChannels * sizeof(cmsFloat32Number));
« 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