зеркало из https://github.com/mono/ikvm-fork.git
Bug fix. The size should be taken from the actual zip entry, not the one passed it.
This commit is contained in:
Родитель
be07a80f6a
Коммит
aa78355fea
|
@ -481,7 +481,7 @@ public class ZipFile implements ZipConstants, Closeable
|
|||
case ZipOutputStream.DEFLATED:
|
||||
inp.addDummyByte();
|
||||
final Inflater inf = new Inflater(true);
|
||||
final int sz = (int) entry.getSize();
|
||||
final int sz = (int) zipEntry.getSize();
|
||||
return new InflaterInputStream(inp, inf)
|
||||
{
|
||||
private boolean closed;
|
||||
|
|
Загрузка…
Ссылка в новой задаче