mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8266115: More Manifest Jar Loading
Reviewed-by: mschoene, ahgross, mullan, rhalade
This commit is contained in:
parent
a26f9db704
commit
34628ff8ac
2 changed files with 1 additions and 79 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue