Integrated: 8282577: ICC_Profile.setData(int, byte[]) invalidates the profile

Phil Race prr at openjdk.java.net
Mon Mar 14 18:09:53 UTC 2022


On Wed, 2 Mar 2022 20:53:03 GMT, Phil Race <prr at openjdk.org> wrote:

> As per the bug eval, we are returning a pointer to a native raw LittleCMS profile and it should be a cooked one.
> The simple test fails before the fix with
> ~/jdk17/Contents/Home/bin/java SetTagDataValidation                               
> Exception in thread "main" java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles
> 	at java.desktop/sun.java2d.cmm.lcms.LCMS.createNativeTransform(Native Method)
> 	at java.desktop/sun.java2d.cmm.lcms.LCMS.createTransform(LCMS.java:104)
> 	at java.desktop/sun.java2d.cmm.lcms.LCMSTransform.doTransform(LCMSTransform.java:143)
> 	at java.desktop/sun.java2d.cmm.lcms.LCMSTransform.colorConvert(LCMSTransform.java:633)
> 	at java.desktop/java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:224)
> 	at SetTagDataValidation.main(SetTagDataValidation.java:61)
> 
> and with the fix  just prints 
> java SetTagDataValidation
> 0.4
> 0.5000076
> 0.6

This pull request has now been integrated.

Changeset: f66070b0
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f66070b00d4311c6e3a6fbf38956fa2d5da5fada
Stats:     98 lines in 3 files changed: 89 ins; 3 del; 6 mod

8282577: ICC_Profile.setData(int, byte[]) invalidates the profile

Reviewed-by: serb

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

PR: https://git.openjdk.java.net/jdk/pull/7668



More information about the client-libs-dev mailing list