8266115: More Manifest Jar Loading

Reviewed-by: mschoene, ahgross, mullan, rhalade
This commit is contained in:
Weijun Wang 2021-05-11 20:00:26 +00:00 committed by Henry Jen
parent a26f9db704
commit 34628ff8ac
2 changed files with 1 additions and 79 deletions

View file

@ -801,7 +801,7 @@ public class JarFile extends ZipFile {
try (InputStream is = super.getInputStream(ze)) {
long uncompressedSize = ze.getSize();
if (uncompressedSize > MAX_ARRAY_SIZE) {
throw new OutOfMemoryError("Required array size too large");
throw new IOException("Unsupported size: " + uncompressedSize);
}
int len = (int)uncompressedSize;
int bytesRead;