[jdk11u-dev] Integrated: 8242882: opening jar file with large manifest might throw NegativeArraySizeException
Aleksey Shipilev
shade at openjdk.java.net
Fri Aug 13 07:22:32 UTC 2021
On Wed, 11 Aug 2021 07:29:13 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Unclean backport to match `11.0.13-oracle`. The uncleanliness is due to ambuity in `JarUtils.createJarFile` that does not have the overload with just `(Path, Path)`, as it was added in later JDKs. I added the `Paths.get(".")` to do the same thing.
>
>
> JarUtils.createJarFile(jarFilePath.toAbsolutePath(), jarSourceRoot, Paths.get("."));
>
>
> Additional testing:
> - [x] New test fails without the patch
> - [x] New test passes with the patch
This pull request has now been integrated.
Changeset: 7b6f391b
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.java.net/jdk11u-dev/commit/7b6f391bc12bcdacd2351c6b165f938506159a03
Stats: 85 lines in 2 files changed: 84 ins; 0 del; 1 mod
8242882: opening jar file with large manifest might throw NegativeArraySizeException
Reviewed-by: phh
Backport-of: 782d45bdec6efdb7e689e0839718ecd7bac2c767
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/225
More information about the jdk-updates-dev
mailing list