comparison src/share/native/sun/java2d/cmm/lcms/LCMS.c @ 3047:32cac17b629e

6963489: ZDI-CAN-803: Sun JRE ICC Profile Device Information Tag Remote Code Execution Vulnerability Reviewed-by: prr
author bae
date Thu, 01 Jul 2010 12:04:14 +0400
parents 00cd9dc3c2b5
children 33cc629889bd
comparison
equal deleted inserted replaced
7:b9ce0c143473 10:6491dc28e9c2
188 if (sTrans.xf == NULL) { 188 if (sTrans.xf == NULL) {
189 J2dRlsTraceLn(J2D_TRACE_ERROR, "LCMS_createNativeTransform: " 189 J2dRlsTraceLn(J2D_TRACE_ERROR, "LCMS_createNativeTransform: "
190 "sTrans.xf == NULL"); 190 "sTrans.xf == NULL");
191 JNU_ThrowByName(env, "java/awt/color/CMMException", 191 JNU_ThrowByName(env, "java/awt/color/CMMException",
192 "Cannot get color transform"); 192 "Cannot get color transform");
193 } else {
194 Disposer_AddRecord(env, disposerRef, LCMS_freeTransform, sTrans.j);
193 } 195 }
194 196
195 if (iccArray != &_iccArray[0]) { 197 if (iccArray != &_iccArray[0]) {
196 free(iccArray); 198 free(iccArray);
197 } 199 }
198 Disposer_AddRecord(env, disposerRef, LCMS_freeTransform, sTrans.j);
199 return sTrans.j; 200 return sTrans.j;
200 } 201 }
201 202
202 203
203 /* 204 /*