Skip to content

Conversation

jankratochvil
Copy link
Contributor

@jankratochvil jankratochvil commented Sep 5, 2025

ICC_Profile header is validated too late leading later to unexpected exceptions.
A testcase is included.
It is a clean backport (except for copyright years).
This backport is authored by Anton Voznia, I am only submitting it. Anton Voznia is an Azul employee so he should be covered by Azul OCA. Anton Voznia has not signed a personal OCA from Oracle.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8347377 needs maintainer approval

Warning

 ⚠️ Patch contains a binary file (test/jdk/java/awt/color/ICC_Profile/ValidateICCHeaderData/invalidSRGB.icc)

Issue

  • JDK-8347377: Add validation checks for ICC_Profile header fields (Bug - P3 - Approved)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3886/head:pull/3886
$ git checkout pull/3886

Update a local copy of the PR:
$ git checkout pull/3886
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3886/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3886

View PR using the GUI difftool:
$ git pr show -t 3886

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3886.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 5, 2025

👋 Welcome back jkratochvil! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 5, 2025

@jankratochvil This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8347377: Add validation checks for ICC_Profile header fields

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 18 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title Backport ed8945a68a67dd51a7cfa332905941afccc12b36 8347377: Add validation checks for ICC_Profile header fields Sep 5, 2025
@openjdk
Copy link

openjdk bot commented Sep 5, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Sep 5, 2025
@openjdk
Copy link

openjdk bot commented Sep 5, 2025

⚠️ @jankratochvil This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 5, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 5, 2025

Webrevs

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Sep 8, 2025
@GoeLin
Copy link
Member

GoeLin commented Sep 10, 2025

Hi @jankratochvil
what tests did you run?

@antonvoznia
Copy link

antonvoznia commented Sep 10, 2025

Hi @GoeLin ,
I've been working on it.
I ran all tests under test/jdk/java/awt/color/ including this new one that was introduced within this commit.
The tests passed.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants