git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1146020 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -238,6 +238,7 @@ Miha | |||||
| Mike Davis | Mike Davis | ||||
| Mike Roberts | Mike Roberts | ||||
| mnowostawski | mnowostawski | ||||
| Mounir | |||||
| Nathan Beyer | Nathan Beyer | ||||
| Nick Chalko | Nick Chalko | ||||
| Nick Fortescue | Nick Fortescue | ||||
| @@ -55,6 +55,10 @@ Fixed bugs: | |||||
| error output stream some "Pipe broken" errors. | error output stream some "Pipe broken" errors. | ||||
| Bugzilla Report 48789. | Bugzilla Report 48789. | ||||
| * ZipFile failed to clean up some resources which could lead to | |||||
| OutOfMemoryException while unzipping large archives. | |||||
| Bugzilla Report 42969. | |||||
| Other changes: | Other changes: | ||||
| -------------- | -------------- | ||||
| @@ -976,6 +976,9 @@ | |||||
| <name> | <name> | ||||
| <last>mnowostawski</last> | <last>mnowostawski</last> | ||||
| </name> | </name> | ||||
| <name> | |||||
| <last>Mounir</last> | |||||
| </name> | |||||
| <name> | <name> | ||||
| <first>Nathan</first> | <first>Nathan</first> | ||||
| <last>Beyer</last> | <last>Beyer</last> | ||||
| @@ -269,7 +269,13 @@ public class ZipFile { | |||||
| return bis; | return bis; | ||||
| case ZipEntry.DEFLATED: | case ZipEntry.DEFLATED: | ||||
| bis.addDummy(); | bis.addDummy(); | ||||
| return new InflaterInputStream(bis, new Inflater(true)); | |||||
| final Inflater inflater = new Inflater(true); | |||||
| return new InflaterInputStream(bis, inflater) { | |||||
| public void close() throws IOException { | |||||
| super.close(); | |||||
| inflater.end(); | |||||
| } | |||||
| }; | |||||
| default: | default: | ||||
| throw new ZipException("Found unsupported compression method " | throw new ZipException("Found unsupported compression method " | ||||
| + ze.getMethod()); | + ze.getMethod()); | ||||