Skip to content

Commit 2ca3efc

Browse files
authored
Merge pull request #1968 from SAP/pr-jdk-11.0.28+2
Merge to tag jdk-11.0.28+2
2 parents dbddb7d + 16b5676 commit 2ca3efc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3791
-3420
lines changed

make/common/MakeIO.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ ifeq ($(HAS_FILE_FUNCTION), true)
257257
else
258258
# Use printf to get consistent behavior on all platforms.
259259
WriteFile = \
260-
$(shell $(PRINTF) "%s" $(call ShellQuote, $1) > $2)
260+
$(shell $(PRINTF) "%s\n" $(strip $(call ShellQuote, $1)) > $2)
261261
endif
262262

263263
# Param 1 - Text to write
@@ -268,5 +268,5 @@ ifeq ($(HAS_FILE_FUNCTION), true)
268268
else
269269
# Use printf to get consistent behavior on all platforms.
270270
AppendFile = \
271-
$(shell $(PRINTF) "%s" $(call ShellQuote, $1) >> $2)
271+
$(shell $(PRINTF) "%s\n" $(strip $(call ShellQuote, $1)) >> $2)
272272
endif

make/data/cacerts/camerfirmachamberscommerceca

Lines changed: 0 additions & 35 deletions
This file was deleted.

make/data/cacerts/camerfirmachambersignca

Lines changed: 0 additions & 48 deletions
This file was deleted.

make/lib/Awt2dLibraries.gmk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,10 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
887887
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
888888
EXTRA_HEADER_DIRS := $(LIBSPLASHSCREEN_HEADER_DIRS), \
889889
DISABLED_WARNINGS_gcc := sign-compare type-limits unused-result \
890-
maybe-uninitialized shift-negative-value implicit-fallthrough, \
890+
maybe-uninitialized shift-negative-value implicit-fallthrough \
891+
unused-function, \
891892
DISABLED_WARNINGS_clang := incompatible-pointer-types deprecated-declarations \
892-
$(LIBZ_DISABLED_WARNINGS_CLANG), \
893+
unused-function $(LIBZ_DISABLED_WARNINGS_CLANG), \
893894
DISABLED_WARNINGS_solstudio := E_NEWLINE_NOT_LAST E_DECLARATION_IN_CODE \
894895
E_STATEMENT_NOT_REACHED, \
895896
DISABLED_WARNINGS_microsoft := 4018 4244 4267, \

src/java.base/share/classes/sun/security/validator/CamerfirmaTLSPolicy.java

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,14 @@ final class CamerfirmaTLSPolicy {
4343

4444
private static final Debug debug = Debug.getInstance("certpath");
4545

46-
// SHA-256 certificate fingerprints of distrusted roots
47-
private static final Set<String> FINGERPRINTS = Set.of(
48-
// cacerts alias: camerfirmachamberscommerceca
49-
// DN: CN=Chambers of Commerce Root,
50-
// OU=http://www.chambersign.org,
51-
// O=AC Camerfirma SA CIF A82743287, C=EU
52-
"0C258A12A5674AEF25F28BA7DCFAECEEA348E541E6F5CC4EE63B71B361606AC3",
53-
// cacerts alias: camerfirmachambersca
54-
// DN: CN=Chambers of Commerce Root - 2008,
55-
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
56-
// L=Madrid (see current address at www.camerfirma.com/address),
57-
// C=EU
58-
"063E4AFAC491DFD332F3089B8542E94617D893D7FE944E10A7937EE29D9693C0",
59-
// cacerts alias: camerfirmachambersignca
60-
// DN: CN=Global Chambersign Root - 2008,
61-
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
62-
// L=Madrid (see current address at www.camerfirma.com/address),
63-
// C=EU
64-
"136335439334A7698016A0D324DE72284E079D7B5220BB8FBD747816EEBEBACA"
65-
);
46+
// SHA-256 certificate fingerprint of distrusted root for TLS
47+
// cacerts alias: camerfirmachambersca
48+
// DN: CN=Chambers of Commerce Root - 2008,
49+
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
50+
// L=Madrid (see current address at www.camerfirma.com/address),
51+
// C=EU
52+
private static final String FINGERPRINT =
53+
"063E4AFAC491DFD332F3089B8542E94617D893D7FE944E10A7937EE29D9693C0";
6654

6755
// Any TLS Server certificate that is anchored by one of the Camerfirma
6856
// roots above and is issued after this date will be distrusted.
@@ -85,7 +73,7 @@ static void checkDistrust(X509Certificate[] chain)
8573
throw new ValidatorException("Cannot generate fingerprint for "
8674
+ "trust anchor of TLS server certificate");
8775
}
88-
if (FINGERPRINTS.contains(fp)) {
76+
if (FINGERPRINT.equalsIgnoreCase(fp)) {
8977
Date notBefore = chain[0].getNotBefore();
9078
LocalDate ldNotBefore = LocalDate.ofInstant(notBefore.toInstant(),
9179
ZoneOffset.UTC);

src/java.desktop/share/legal/lcms.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
## Little Color Management System (LCMS) v2.16
1+
## Little Color Management System (LCMS) v2.17
22

33
### LCMS License
44
<pre>
55

66
MIT License
77

8-
Copyright (C) 1998-2023 Marti Maria Saguer
8+
Copyright (C) 1998-2025 Marti Maria Saguer
99

1010
Permission is hereby granted, free of charge, to any person obtaining
1111
a copy of this software and associated documentation files (the "Software"),
@@ -26,10 +26,10 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2626
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2727

2828
---------------------------------
29-
The below license applies to the following files:
29+
The below applies to the following file(s):
3030
liblcms/cmssm.c
3131

32-
Copyright 2001, softSurfer (www.softsurfer.com)
32+
Copyright (C) 2001, softSurfer (www.softsurfer.com)
3333

3434
This code may be freely used and modified for any purpose
3535
providing that this copyright notice is included with it.
@@ -99,5 +99,5 @@ Christian Albrecht
9999
Dimitrios Anastassakis
100100
Lemke Software
101101
Tim Zaman
102-
103-
```
102+
Amir Montazery and Open Source Technology Improvement Fund (ostif.org), Google, for fuzzer fundings.
103+
```

src/java.desktop/share/legal/libpng.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## libpng v1.6.43
1+
## libpng v1.6.47
22

33
### libpng License
44
<pre>
@@ -9,8 +9,8 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
99
PNG Reference Library License version 2
1010
---------------------------------------
1111

12-
Copyright (C) 1995-2024 The PNG Reference Library Authors.
13-
Copyright (C) 2018-2024 Cosmin Truta
12+
Copyright (c) 1995-2025 The PNG Reference Library Authors.
13+
Copyright (C) 2018-2025 Cosmin Truta
1414
Copyright (C) 1998-2018 Glenn Randers-Pehrson
1515
Copyright (C) 1996-1997 Andreas Dilger
1616
Copyright (C) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -170,6 +170,7 @@ Authors, for copyright and licensing purposes.
170170
* James Yu
171171
* John Bowler
172172
* Kevin Bracey
173+
* Lucas Chollet
173174
* Magnus Holmgren
174175
* Mandar Sahastrabuddhe
175176
* Mans Rullgard

src/java.desktop/share/native/liblcms/cmsalpha.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//---------------------------------------------------------------------------------
3131
//
3232
// Little Color Management System
33-
// Copyright (c) 1998-2023 Marti Maria Saguer
33+
// Copyright (c) 1998-2024 Marti Maria Saguer
3434
//
3535
// Permission is hereby granted, free of charge, to any person obtaining
3636
// a copy of this software and associated documentation files (the "Software"),
@@ -612,8 +612,8 @@ void _cmsHandleExtraChannels(_cmsTRANSFORM* p, const void* in,
612612
cmsUInt8Number* SourcePtr;
613613
cmsUInt8Number* DestPtr;
614614

615-
cmsUInt32Number SourceStrideIncrement = 0;
616-
cmsUInt32Number DestStrideIncrement = 0;
615+
size_t SourceStrideIncrement = 0;
616+
size_t DestStrideIncrement = 0;
617617

618618
// The loop itself
619619
for (i = 0; i < LineCount; i++) {
@@ -640,8 +640,8 @@ void _cmsHandleExtraChannels(_cmsTRANSFORM* p, const void* in,
640640
cmsUInt8Number* SourcePtr[cmsMAXCHANNELS];
641641
cmsUInt8Number* DestPtr[cmsMAXCHANNELS];
642642

643-
cmsUInt32Number SourceStrideIncrements[cmsMAXCHANNELS];
644-
cmsUInt32Number DestStrideIncrements[cmsMAXCHANNELS];
643+
size_t SourceStrideIncrements[cmsMAXCHANNELS];
644+
size_t DestStrideIncrements[cmsMAXCHANNELS];
645645

646646
memset(SourceStrideIncrements, 0, sizeof(SourceStrideIncrements));
647647
memset(DestStrideIncrements, 0, sizeof(DestStrideIncrements));

src/java.desktop/share/native/liblcms/cmscam02.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//---------------------------------------------------------------------------------
3131
//
3232
// Little Color Management System
33-
// Copyright (c) 1998-2023 Marti Maria Saguer
33+
// Copyright (c) 1998-2024 Marti Maria Saguer
3434
//
3535
// Permission is hereby granted, free of charge, to any person obtaining
3636
// a copy of this software and associated documentation files (the "Software"),
@@ -117,17 +117,16 @@ cmsFloat64Number computeFL(cmsCIECAM02* pMod)
117117
return FL;
118118
}
119119

120-
static
121-
cmsFloat64Number computeD(cmsCIECAM02* pMod)
120+
static cmsFloat64Number computeD(cmsCIECAM02* pMod)
122121
{
123-
cmsFloat64Number D;
122+
cmsFloat64Number D, temp;
124123

125-
D = pMod->F - (1.0/3.6)*(exp(((-pMod ->LA-42) / 92.0)));
124+
temp = 1.0 - ((1.0 / 3.6) * exp((-pMod->LA - 42) / 92.0));
126125

126+
D = pMod->F * temp;
127127
return D;
128128
}
129129

130-
131130
static
132131
CAM02COLOR XYZtoCAT02(CAM02COLOR clr)
133132
{

0 commit comments

Comments
 (0)