[jdk11u-dev] RFR: 8312489: Increase jdk.jar.maxSignatureFileSize default which is too low for JARs such as WhiteSource/Mend unified agent jar

Christoph Langer clanger at openjdk.org
Mon Sep 4 13:22:54 UTC 2023


On Sat, 2 Sep 2023 18:05:39 GMT, Andrew John Hughes <andrew at openjdk.org> wrote:

> The security fix, JDK-8300596, introduced a maximum size for signature-related files in JAR files, via the `jdk.jar.maxSignatureFileSize` property. The default value of 8MB has since proven to be too low for some JARs in general use. This change doubles it to 16MB, while still being much lower than the previous `MAX_ARRAY_SIZE` value of `Integer.MAX_VALUE - 8`
> 
> This pull request contains a clean backport of commit [e47a84f2](https://github.com/openjdk/jdk/commit/e47a84f23dd2608c6f5748093eefe301fb5bf750) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by Hai-May Chao on 31 Jul 2023 and was reviewed by Sean Mullan and Matthias Baesken.

@gnu-andrew I think we should do this in jdk11u to make it part of the October update (as it is for OpenJDK 17 and 21). If you agree, please transplant the PR to jdk11u.

-------------

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2116#issuecomment-1705264418


More information about the jdk-updates-dev mailing list