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 {
436436 throw new IOException ("Unsupported size: " + uncompressedSize +
437437 " for JarEntry " + ze .getName () +
438438 ". 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." );
440442 }
441443 int len = (int )uncompressedSize ;
442444 byte [] b = IOUtils .readAllBytes (is );
Original file line number Diff line number Diff line change @@ -855,16 +855,16 @@ private static int initializeMaxSigFileSize() {
855855 * the maximum allowed number of bytes for the signature-related files
856856 * in a JAR file.
857857 */
858- Integer tmp = AccessController .doPrivileged (new GetIntegerAction (
859- "jdk.jar.maxSignatureFileSize" , 8000000 ));
858+ int tmp = AccessController .doPrivileged (new GetIntegerAction (
859+ "jdk.jar.maxSignatureFileSize" , 16000000 ));
860860 if (tmp < 0 || tmp > MAX_ARRAY_SIZE ) {
861861 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 " +
865865 "is out of range: " + tmp );
866866 }
867- tmp = 8000000 ;
867+ tmp = 16000000 ;
868868 }
869869 return tmp ;
870870 }
You can’t perform that action at this time.
0 commit comments