[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug #790] java.util.zip.DeflaterEngine exception
From: |
nobody |
Subject: |
[Bug #790] java.util.zip.DeflaterEngine exception |
Date: |
Thu, 04 Jul 2002 05:51:38 -0400 |
=================== BUG #790: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=790&group_id=85
Changes by: Jochen Hoenicke <address@hidden>
Date: 2002-Jul-04 11:51 (Europe/Berlin)
What | Removed | Added
---------------------------------------------------------------------------
Assigned to | None | jochen
Status | Open | In Process
------------------ Additional Follow-up Comments ----------------------------
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.
------------------ Additional Bug Attachment ----------------------------
File name: Defl.diff Size:0 KB
(Preliminary) bug fix
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=790&bug_file_id=49
=================== BUG #790: FULL BUG SNAPSHOT ===================
Submitted by: Omnibrain Project: classpath
Submitted on: 2002-Jul-02 19:50
Severity: 5 - Major Resolution: None
Assigned to: jochen Status: In Process
Platform Version: None
Summary: java.util.zip.DeflaterEngine exception
Original Submission: 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();
Follow-up Comments
*******************
-------------------------------------------------------
Date: 2002-Jul-04 11:51 By: jochen
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.
File Attachments
****************
-------------------------------------------------------
Date: 2002-Jul-04 11:51 Name: Defl.diff Size: 0KB By: jochen
(Preliminary) bug fix
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=790&bug_file_id=49
-------------------------------------------------------
Date: 2002-Jul-02 19:50 Name: test.bin Size: 63KB By: Omnibrain
The file that fails.
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=790&bug_file_id=47
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=790&group_id=85