[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22642] java.util.zip.DeflaterEngine exception
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22642] java.util.zip.DeflaterEngine exception |
Date: |
16 Oct 2005 01:26:11 -0000 |
I got an exception trying to pack this file with
GZIP (at DeflaterEngine.findLongestMatch).
Code to reproduce this error :
FileInputStream inputStream = new FileInputStream("test.bin");
GZIPOutputStream outputStream = new GZIPOutputStream(new
FileOutputStream("test.bin.gz"));
byte[] writeData = new byte[inputStream.available()];
inputStream.read(writeData);
outputStream.write(writeData);
inputStream.close();
outputStream.close();
------- Comment #1 from from-classpath at savannah dot gnu dot org 2002-07-04
09:51 -------
The attached diff file fixes this bug, but I want to investigate this a bit
further. There is at least one other possible array overflow in the same
routine.
BTW, I think zlib has the same bug, but as there are no array bounds checks in
C nobody has noticed it.
------- Comment #2 from from-classpath at savannah dot gnu dot org 2002-07-05
21:07 -------
Fixed in CVS. I choose a different approach, so that the check I posted last
time is not necessary anymore.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22642
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22642] java.util.zip.DeflaterEngine exception,
gcc-bugzilla at gcc dot gnu dot org <=