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

Side by Side Diff: third_party/lcms2-2.6/0009-cmsStageAllocMatrix-param-swap.patch

Issue 2424803002: lcms: Revise previous cmsStageAllocMatrix fix (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 diff --git a/third_party/lcms2-2.6/src/cmslut.c b/third_party/lcms2-2.6/src/cmsl ut.c
2 index 73e6726..9b0eb4b 100644
3 --- a/third_party/lcms2-2.6/src/cmslut.c
4 +++ b/third_party/lcms2-2.6/src/cmslut.c
5 @@ -414,13 +414,13 @@ cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext Contex tID, cmsUInt32Number R
6
7 if (Offset != NULL) {
8
9 - NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Cols, size of(cmsFloat64Number));
10 + NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Rows, size of(cmsFloat64Number));
11 if (NewElem->Offset == NULL) {
12 MatrixElemTypeFree(NewMPE);
13 return NULL;
14 }
15
16 - for (i=0; i < Cols; i++) {
17 + for (i=0; i < Rows; i++) {
18 NewElem ->Offset[i] = Offset[i];
19 }
20
OLDNEW
« no previous file with comments | « third_party/lcms2-2.6/0009-cmdStageAllocMatrix-param-swap.patch ('k') | third_party/lcms2-2.6/README.pdfium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698