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 @@ -802,7 +802,9 @@ private byte[] getBytes(ZipEntry ze) throws IOException {
802
802
throw new IOException ("Unsupported size: " + uncompressedSize +
803
803
" for JarEntry " + ze .getName () +
804
804
". Allowed max size: " +
805
- SignatureFileVerifier .MAX_SIG_FILE_SIZE + " bytes" );
805
+ SignatureFileVerifier .MAX_SIG_FILE_SIZE + " bytes. " +
806
+ "You can use the jdk.jar.maxSignatureFileSize " +
807
+ "system property to increase the default value." );
806
808
}
807
809
int len = (int )uncompressedSize ;
808
810
int bytesRead ;
Original file line number Diff line number Diff line change @@ -847,16 +847,16 @@ private static int initializeMaxSigFileSize() {
847
847
* the maximum allowed number of bytes for the signature-related files
848
848
* in a JAR file.
849
849
*/
850
- Integer tmp = GetIntegerAction .privilegedGetProperty (
851
- "jdk.jar.maxSignatureFileSize" , 8000000 );
850
+ int tmp = GetIntegerAction .privilegedGetProperty (
851
+ "jdk.jar.maxSignatureFileSize" , 16000000 );
852
852
if (tmp < 0 || tmp > MAX_ARRAY_SIZE ) {
853
853
if (debug != null ) {
854
- debug .println ("Default signature file size 8000000 bytes " +
855
- "is used as the specified size for the " +
856
- "jdk.jar.maxSignatureFileSize system property " +
854
+ debug .println ("The default signature file size of 16000000 bytes " +
855
+ "will be used for the jdk.jar.maxSignatureFileSize " +
856
+ "system property since the specified value " +
857
857
"is out of range: " + tmp );
858
858
}
859
- tmp = 8000000 ;
859
+ tmp = 16000000 ;
860
860
}
861
861
return tmp ;
862
862
}
You can’t perform that action at this time.
0 commit comments