diff options
author | Nicolas Pena <npm@chromium.org> | 2017-08-10 16:36:56 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-10 20:54:00 +0000 |
commit | f7520395821090b36a5ad8c658a844c3342dbf66 (patch) | |
tree | abe5505e60a57479593d6c39790fe214c23f9fef /third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch | |
parent | a12812924fc844823025fa383cc3ec8c1d1e2d4f (diff) | |
download | pdfium-f7520395821090b36a5ad8c658a844c3342dbf66.tar.xz |
LCMS: rename folder
Change-Id: I5f240cb0779648dc5427fecb5561086e7c0fb16a
Reviewed-on: https://pdfium-review.googlesource.com/10650
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch')
-rw-r--r-- | third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch b/third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch deleted file mode 100644 index a6cfe02b8c..0000000000 --- a/third_party/lcms2-2.6/0011-memory-leak-ReadSegmentedCurve.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff --git a/third_party/lcms2-2.6/src/cmstypes.c b/third_party/lcms2-2.6/src/cmstypes.c -index 15199c7..04dd0c4 100644 ---- a/third_party/lcms2-2.6/src/cmstypes.c -+++ b/third_party/lcms2-2.6/src/cmstypes.c -@@ -3968,7 +3968,7 @@ cmsToneCurve* ReadSegmentedCurve(struct _cms_typehandler_struct* self, cmsIOHAND - case cmsSigSampledCurveSeg: { - cmsUInt32Number Count; - -- if (!_cmsReadUInt32Number(io, &Count)) return NULL; -+ if (!_cmsReadUInt32Number(io, &Count)) goto Error; - - Segments[i].nGridPoints = Count; - Segments[i].SampledPoints = (cmsFloat32Number*) _cmsCalloc(self ->ContextID, Count, sizeof(cmsFloat32Number)); -@@ -3987,7 +3987,7 @@ cmsToneCurve* ReadSegmentedCurve(struct _cms_typehandler_struct* self, cmsIOHAND - _cmsTagSignature2String(String, (cmsTagSignature) ElementSig); - cmsSignalError(self->ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unknown curve element type '%s' found.", String); - } -- return NULL; -+ goto Error; - - } - } -@@ -4001,7 +4001,12 @@ cmsToneCurve* ReadSegmentedCurve(struct _cms_typehandler_struct* self, cmsIOHAND - return Curve; - - Error: -- if (Segments) _cmsFree(self ->ContextID, Segments); -+ if (Segments) { -+ for (i=0; i < nSegments; i++) { -+ if (Segments[i].SampledPoints) _cmsFree(self ->ContextID, Segments[i].SampledPoints); -+ } -+ _cmsFree(self ->ContextID, Segments); -+ } - return NULL; - } - |