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

Reviewed-by: aivanov, azvegint
  • Loading branch information
mrserb committed Sep 15, 2021
1 parent 6cf70f5 commit 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c
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 {

14 comments on commit 1017a2c

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 1017a2c Sep 15, 2021

Choose a reason for hiding this comment

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

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb could not automatically backport 1017a2c2 to Optional[openjdk/jdk17u] due to conflicts in the following files:

  • test/jdk/java/awt/color/ICC_ColorSpace/MTTransformReplacedProfile.java

To manually resolve these conflicts run the following commands in your personal fork of Optional[openjdk/jdk17u]:

$ git checkout -b mrserb-backport-1017a2c2
$ git fetch --no-tags https://git.openjdk.java.net/jdk 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c
$ git cherry-pick --no-commit 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c
$ # Resolve conflicts
$ git add files/with/resolved/conflicts
$ git commit -m 'Backport 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c'

Once you have resolved the conflicts as explained above continue with creating a pull request towards the Optional[openjdk/jdk17u] with the title Backport 1017a2c2d7ae99e0076abcfaf5e730fec3cb9c6c.

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u pull/91

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb the target branch pull/91 does not exist

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u pull/91/head:pull/91

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb the target branch pull/91/head:pull/91 does not exist

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u/pull/91

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb the target repository jdk17u/pull/91 is not a valid target for backports.
List of valid target repositories: openjdk/jdk11u, openjdk/jdk11u-dev, openjdk/jdk12u, openjdk/jdk13u, openjdk/jdk13u-dev, openjdk/jdk14u, openjdk/jdk15u, openjdk/jdk15u-dev, openjdk/jdk16u, openjdk/jdk17u.
Supplying the organization/group prefix is optional.

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

Hi @erikj79, do you know how to create a backport on top of other PR?
Something like was mentioned here https://bugs.openjdk.java.net/browse/SKARA-511

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u 91

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb the target branch 91 does not exist

@mrserb
Copy link
Member Author

@mrserb mrserb commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

/backport jdk17u

@openjdk
Copy link

@openjdk openjdk bot commented on 1017a2c Sep 28, 2021

Choose a reason for hiding this comment

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

@mrserb the backport was successfully created on the branch mrserb-backport-1017a2c2 in my personal fork of openjdk/jdk17u. To create a pull request with this backport targeting openjdk/jdk17u:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

this pull request contains a backport of commit 1017a2c2 from the openjdk/jdk repository.

The commit being backported was authored by Sergey Bylokhov on 15 Sep 2021 and was reviewed by Alexey Ivanov and Alexander Zvegintsev.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u:

$ git fetch https://github.com/openjdk-bots/jdk17u mrserb-backport-1017a2c2:mrserb-backport-1017a2c2
$ git checkout mrserb-backport-1017a2c2
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u mrserb-backport-1017a2c2

Please sign in to comment.