bug in ZipInputStream

Per Bothner per@bothner.com
Sat Dec 14 11:54:00 GMT 2002


Erik Poupaert wrote:
> I think I am the latest victim of the notorious java.util.zip.ZipInputStream
> bug. Google is bulking with reports on it. I think the bug is slowly but
> surely taking over the world.
> 
> I'm talking about the latest and the greatest release candidate
> gcj-3.2-20021210-1.tar.gz; and it's still in there!
> 
> I was trying to read from the executable's core with Anthony Green's "core
> protocol" stuff; which works brilliantly by the way, and shove the
> inputstream received from the core into a ZipInputStream. Believe it or not,
> the bytecount is there, and all is well for several entries, until I do
> getNextEntry() on a non-directory ZipEntry, and then it all flies in my
> face. I tried remediate by shoving in jazzlib; in vain, it complains about
> UTF-8 stuff. It's dead too in gcj.

There was a bug (PR 8234), but Tom Tromey checked in a fix for that.
If you have some new bug, please send in a proper bug report, with a
repeatable complete test case.  Look at PR 8234, which allowed Tom
to finally track down a bug, after lots of past but useless complaints.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



More information about the Java mailing list