Skip to content
Permalink
Browse files
8273135: java/awt/color/ICC_ColorSpace/MTTransformReplacedProfile.jav…
…a crashes in liblcms.dylib with NULLSeek+0x7

Backport-of: 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c
  • Loading branch information
mrserb committed Sep 29, 2021
1 parent 2586eb0 commit cdd4075663200e830c38f967242a8d58ee314289
Showing 2 changed files with 3 additions and 2 deletions.
@@ -1532,7 +1532,7 @@ cmsBool IsTypeSupported(cmsTagDescriptor* TagDescriptor, cmsTagTypeSignature Typ
void* CMSEXPORT cmsReadTag(cmsHPROFILE hProfile, cmsTagSignature sig)
{
_cmsICCPROFILE* Icc = (_cmsICCPROFILE*) hProfile;
cmsIOHANDLER* io = Icc ->IOhandler;
cmsIOHANDLER* io;
cmsTagTypeHandler* TypeHandler;
cmsTagTypeHandler LocalTypeHandler;
cmsTagDescriptor* TagDescriptor;
@@ -1573,6 +1573,7 @@ void* CMSEXPORT cmsReadTag(cmsHPROFILE hProfile, cmsTagSignature sig)

if (TagSize < 8) goto Error;

io = Icc ->IOhandler;
// Seek to its location
if (!io -> Seek(io, Offset))
goto Error;
@@ -34,7 +34,7 @@

/**
* @test
* @bug 8271718
* @bug 8271718 8273135
* @summary Verifies MT safety of color transformation while profile is changed
*/
public final class MTTransformReplacedProfile {

1 comment on commit cdd4075

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on cdd4075 Sep 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.