mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8312489: Increase jdk.jar.maxSignatureFileSize default which is too low for JARs such as WhiteSource/Mend unified agent jar
Reviewed-by: mullan, mbaesken
This commit is contained in:
parent
78f67993f8
commit
e47a84f23d
2 changed files with 9 additions and 7 deletions
|
@ -847,16 +847,16 @@ public class SignatureFileVerifier {
|
|||
* the maximum allowed number of bytes for the signature-related files
|
||||
* in a JAR file.
|
||||
*/
|
||||
Integer tmp = GetIntegerAction.privilegedGetProperty(
|
||||
"jdk.jar.maxSignatureFileSize", 8000000);
|
||||
int tmp = GetIntegerAction.privilegedGetProperty(
|
||||
"jdk.jar.maxSignatureFileSize", 16000000);
|
||||
if (tmp < 0 || tmp > MAX_ARRAY_SIZE) {
|
||||
if (debug != null) {
|
||||
debug.println("Default signature file size 8000000 bytes " +
|
||||
"is used as the specified size for the " +
|
||||
"jdk.jar.maxSignatureFileSize system property " +
|
||||
debug.println("The default signature file size of 16000000 bytes " +
|
||||
"will be used for the jdk.jar.maxSignatureFileSize " +
|
||||
"system property since the specified value " +
|
||||
"is out of range: " + tmp);
|
||||
}
|
||||
tmp = 8000000;
|
||||
tmp = 16000000;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue