RFR: JDK-8347377 : Add validation checks for ICC_Profile header fields [v9]

Sergey Bylokhov serb at openjdk.org
Fri Jan 31 10:21:56 UTC 2025


On Tue, 28 Jan 2025 19:20:36 GMT, Phil Race <prr at openjdk.org> wrote:

>Non-ICC intents are not something we'd support. I see absolutely no problem with that.
If a profile has an intent that is unknown to JDK APIs, it doesn't matter what LCMS might do with it
if you were programming directly to LCMS as a CMM.

non-cc intents in lcms are just examples of profiles in the wild that don't violate the icc spec, currently such profiles can be loaded and used for conversion, this patch will break that. Why we should apply this limit and do that now?

Note that it is possible to use custom intents as well, and we will break it:
>Little CMS plug-in architecture allows to implement user-defined intents

>Who knows how many things we'd have to do in order to support 'custom' ICC intents.

Then let's at least not break it intentionally. Then test and fix if it does not work.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23044#issuecomment-2626845518


More information about the client-libs-dev mailing list