JDK-8239091 : Reversed arguments in call to strstr in freetype "debug" code.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-02-14
  • Updated: 2021-02-11
  • Resolved: 2020-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 Other
11.0.8-oracleFixed 13.0.4Fixed 15 b13Fixed openjdk8u292Fixed
Related Reports
Duplicate :  
Description
There is code in freetypeFontScaler.c that reads FREETYPE_PROPERTIES and parses it to see if the application is specifying the interpreter-version to use.
If so, JDK won't enforce its default.

The code that does this uses strstr, but unfortunately the arguments to strstr are reversed so you can't specify your preferred value.
All you can do is disable JDK setting its preferred value.
Comments
Fix request (8u): Request to backport this fix to 8u. Applies cleanly. Follow-up for JDK-8217731 that has been backported to 8u.
09-02-2021

Fix request (13u): The change applies cleanly.
04-06-2020

Fix Request jdk11u release is affected by this bug. Patch applies cleanly.
03-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/bc9c585b41e7 User: psadhukhan Date: 2020-03-03 09:13:24 +0000
03-03-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/bc9c585b41e7 User: prr Date: 2020-02-14 18:44:40 +0000
14-02-2020