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:
parent
d09e61b9b0
commit
315b65915c
3 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue