[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/36560] New: java.util.zip: Error parsing zip file with la
From: |
daniel at nuix dot com |
Subject: |
[Bug classpath/36560] New: java.util.zip: Error parsing zip file with larger files in it |
Date: |
18 Jun 2008 00:22:26 -0000 |
I will attach a sample zip file which contains an empty file slight under 50MB.
Sample code:
import java.io.File;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import junit.framework.TestCase;
import org.apache.commons.io.IOUtils;
public class TestZipBug extends TestCase {
public void testZipBug() throws Exception {
ZipFile zip = new ZipFile(new File("D:\\gnu-zip-large-file-bug.zip"));
ZipEntry entry = (ZipEntry) zip.entries().nextElement();
IOUtils.toByteArray(zip.getInputStream(entry));
// Omitting code to verify contents.
}
}
Resulting error:
Caused by: gnu.java.util.zip.ZipException: Code lengths don't add up properly.
at gnu.java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
--
Summary: java.util.zip: Error parsing zip file with larger files
in it
Product: classpath
Version: 0.97
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daniel at nuix dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36560
- [Bug classpath/36560] New: java.util.zip: Error parsing zip file with larger files in it,
daniel at nuix dot com <=
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/17
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, jeroen at frijters dot net, 2008/06/19
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, jeroen at frijters dot net, 2008/06/19
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, jeroen at frijters dot net, 2008/06/19
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/19
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/29
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/30
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/30
- [Bug classpath/36560] java.util.zip: Error parsing zip file with larger files in it, daniel at nuix dot com, 2008/06/30