RFR: 8347321: [ubsan] CGGlyphImages.m:553:30: runtime error: nan is outside the range of representable values of type 'unsigned long'
Phil Race
prr at openjdk.org
Mon Mar 3 06:02:45 UTC 2025
The font tests that fail use non-finite or NaN float values.
In such cases, no visible rendering is expected and the NaNTransform test does pass with empty shapes, but we can filter out these invalid floats before they get to native.
The macOS class that handles the font strike can check for these and replace them.
Since you can't observe a difference unless you can get ubsan to work (not easy) and that is a build option, so not something we can use in testing, there' s no regression test update here.
-------------
Commit messages:
- 8347321
Changes: https://git.openjdk.org/jdk/pull/23855/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23855&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8347321
Stats: 12 lines in 1 file changed: 11 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23855.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23855/head:pull/23855
PR: https://git.openjdk.org/jdk/pull/23855
More information about the client-libs-dev
mailing list