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