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