summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/lcms2
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fxcodec/lcms2')
-rw-r--r--core/src/fxcodec/lcms2/lcms2-2.6/src/cmsgamma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsgamma.c b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsgamma.c
index d5aa87b105..97aeb7cc16 100644
--- a/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsgamma.c
+++ b/core/src/fxcodec/lcms2/lcms2-2.6/src/cmsgamma.c
@@ -822,7 +822,7 @@ cmsToneCurve* CMSEXPORT cmsDupToneCurve(const cmsToneCurve* In)
// Xiaochuan Liu
// fix openpdf bug(mantis id:0055683, google id:360198)
// the function CurveSetElemTypeFree in cmslut.c also needs to check pointer
- if (In == NULL || In ->InterpParams == NULL) return NULL;
+ if (In == NULL || In ->InterpParams == NULL || In ->Segments == NULL || In ->Table16 == NULL) return NULL;
return AllocateToneCurveStruct(In ->InterpParams ->ContextID, In ->nEntries, In ->nSegments, In ->Segments, In ->Table16);
}