8014497: [parfait] Potential null pointer dereference in jdk/src/share/native/sun/java2d/cmm/lcms/cmsgamma.c
Reviewed-by: bae, prr
This commit is contained in:
parent
45d608aa5b
commit
f530400e5c
@ -548,6 +548,10 @@ cmsBool FixWhiteMisalignment(cmsPipeline* Lut, cmsColorSpaceSignature EntryColor
|
||||
for (i=0; i < nOuts; i++) {
|
||||
|
||||
cmsToneCurve* InversePostLin = cmsReverseToneCurve(Curves[i]);
|
||||
if (InversePostLin == NULL) {
|
||||
WhiteOut[i] = 0;
|
||||
continue;
|
||||
}
|
||||
WhiteOut[i] = cmsEvalToneCurve16(InversePostLin, WhitePointOut[i]);
|
||||
cmsFreeToneCurve(InversePostLin);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user