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

Side by Side Diff: third_party/lcms2-2.6/src/cmstypes.c

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
« no previous file with comments | « third_party/lcms2-2.6/src/cmslut.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //------------------------------------------------------------------------------ --- 1 //------------------------------------------------------------------------------ ---
2 // 2 //
3 // Little Color Management System 3 // Little Color Management System
4 // Copyright (c) 1998-2014 Marti Maria Saguer 4 // Copyright (c) 1998-2014 Marti Maria Saguer
5 // 5 //
6 // Permission is hereby granted, free of charge, to any person obtaining 6 // Permission is hereby granted, free of charge, to any person obtaining
7 // a copy of this software and associated documentation files (the "Software"), 7 // a copy of this software and associated documentation files (the "Software"),
8 // to deal in the Software without restriction, including without limitation 8 // to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 // and/or sell copies of the Software, and to permit persons to whom the Softwar e 10 // and/or sell copies of the Software, and to permit persons to whom the Softwar e
(...skipping 4207 matching lines...) Expand 10 before | Expand all | Expand 10 after
4218 4218
4219 if (!_cmsReadFloat32Number(io, &v)) { 4219 if (!_cmsReadFloat32Number(io, &v)) {
4220 _cmsFree(self ->ContextID, Matrix); 4220 _cmsFree(self ->ContextID, Matrix);
4221 _cmsFree(self ->ContextID, Offsets); 4221 _cmsFree(self ->ContextID, Offsets);
4222 return NULL; 4222 return NULL;
4223 } 4223 }
4224 Offsets[i] = v; 4224 Offsets[i] = v;
4225 } 4225 }
4226 4226
4227 4227
4228 mpe = cmsStageAllocMatrix(self ->ContextID, InputChans, OutputChans, Matrix, Offsets); 4228 mpe = cmsStageAllocMatrix(self ->ContextID, OutputChans, InputChans, Matrix, Offsets);
4229 _cmsFree(self ->ContextID, Matrix); 4229 _cmsFree(self ->ContextID, Matrix);
4230 _cmsFree(self ->ContextID, Offsets); 4230 _cmsFree(self ->ContextID, Offsets);
4231 4231
4232 *nItems = 1; 4232 *nItems = 1;
4233 4233
4234 return mpe; 4234 return mpe;
4235 4235
4236 cmsUNUSED_PARAMETER(SizeOfTag); 4236 cmsUNUSED_PARAMETER(SizeOfTag);
4237 } 4237 }
4238 4238
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
5570 5570
5571 for (pt = SupportedTags; 5571 for (pt = SupportedTags;
5572 pt != NULL; 5572 pt != NULL;
5573 pt = pt ->Next) { 5573 pt = pt ->Next) {
5574 5574
5575 if (sig == pt -> Signature) return &pt ->Descriptor; 5575 if (sig == pt -> Signature) return &pt ->Descriptor;
5576 } 5576 }
5577 5577
5578 return NULL; 5578 return NULL;
5579 } 5579 }
OLDNEW
« no previous file with comments | « third_party/lcms2-2.6/src/cmslut.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698