File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/java.base/share/classes Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,9 @@ private byte[] getBytes(ZipEntry ze) throws IOException {
803
803
throw new IOException ("Unsupported size: " + uncompressedSize +
804
804
" for JarEntry " + ze .getName () +
805
805
". Allowed max size: " +
806
- SignatureFileVerifier .MAX_SIG_FILE_SIZE + " bytes" );
806
+ SignatureFileVerifier .MAX_SIG_FILE_SIZE + " bytes. " +
807
+ "You can use the jdk.jar.maxSignatureFileSize " +
808
+ "system property to increase the default value." );
807
809
}
808
810
int len = (int )uncompressedSize ;
809
811
int bytesRead ;
Original file line number Diff line number Diff line change @@ -856,16 +856,16 @@ private static int initializeMaxSigFileSize() {
856
856
* the maximum allowed number of bytes for the signature-related files
857
857
* in a JAR file.
858
858
*/
859
- Integer tmp = GetIntegerAction .privilegedGetProperty (
860
- "jdk.jar.maxSignatureFileSize" , 8000000 );
859
+ int tmp = GetIntegerAction .privilegedGetProperty (
860
+ "jdk.jar.maxSignatureFileSize" , 16000000 );
861
861
if (tmp < 0 || tmp > MAX_ARRAY_SIZE ) {
862
862
if (debug != null ) {
863
- debug .println ("Default signature file size 8000000 bytes " +
864
- "is used as the specified size for the " +
865
- "jdk.jar.maxSignatureFileSize system property " +
863
+ debug .println ("The default signature file size of 16000000 bytes " +
864
+ "will be used for the jdk.jar.maxSignatureFileSize " +
865
+ "system property since the specified value " +
866
866
"is out of range: " + tmp );
867
867
}
868
- tmp = 8000000 ;
868
+ tmp = 16000000 ;
869
869
}
870
870
return tmp ;
871
871
}
You can’t perform that action at this time.
0 commit comments