re PR libgcj/8234 (ZipInputStream chokes when InputStream.read() returns small chunks)

Fix for PR libgcj/8234:
	* java/util/zip/natInflater.cc (reset): Reset avail_in.
	* java/util/zip/natDeflater.cc (reset): Reset avail_in.

From-SVN: r58205
This commit is contained in:
Tom Tromey 2002-10-16 14:58:15 +00:00 committed by Tom Tromey
parent d09e61b9b0
commit 315b65915c
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-10-15 Tom Tromey <tromey@redhat.com>
Fix for PR libgcj/8234:
* java/util/zip/natInflater.cc (reset): Reset avail_in.
* java/util/zip/natDeflater.cc (reset): Reset avail_in.
2002-10-13 Mark Wielaard <mark@klomp.org>
* mauve-libgcj: Enable Mauve tests that compile now.

View File

@ -124,6 +124,7 @@ java::util::zip::Deflater::reset ()
z_streamp s = (z_streamp) zstream;
// Just ignore errors.
deflateReset (s);
s->avail_in = 0;
flush_flag = 0;
is_finished = false;
}

View File

@ -149,6 +149,7 @@ java::util::zip::Inflater::reset ()
z_streamp s = (z_streamp) zstream;
// Just ignore errors.
inflateReset (s);
s->avail_in = 0;
is_finished = false;
dict_needed = false;
}