mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 20:03:39 +00:00
8347321: [ubsan] CGGlyphImages.m:553:30: runtime error: nan is outside the range of representable values of type 'unsigned long'
Reviewed-by: kizune, azvegint, aivanov
This commit is contained in:
parent
b84b29278f
commit
6e6a39d35f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -102,6 +102,17 @@ public final class CStrike extends PhysicalStrike {
|
||||
final double[] glyphTx = new double[6];
|
||||
desc.glyphTx.getMatrix(glyphTx);
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
if (Double.isFinite(glyphTx[i])) {
|
||||
continue;
|
||||
}
|
||||
for (int j = 0; j < 6; j++) {
|
||||
glyphTx[j] = 0;
|
||||
}
|
||||
invDevTx = null;
|
||||
break;
|
||||
}
|
||||
|
||||
final double[] invDevTxMatrix = new double[6];
|
||||
if (invDevTx == null) {
|
||||
invDevTxMatrix[0] = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user