This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: PATCH: InflaterInputStream fix and misc tweaks
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: PATCH: InflaterInputStream fix and misc tweaks
- From: Mark Wielaard <mark at klomp dot org>
- Date: Wed, 29 Nov 2000 11:28:46 +0100
- Cc: java-patches at sources dot redhat dot com
- References: <3A24D5D1.19448BCA@albatross.co.nz>
Hi,
On Wed, Nov 29, 2000 at 11:09:21PM +1300, Bryce McKinlay wrote:
> + count = inf.inflate(buf, off, len);
> + if (count == 0)
> + {
> + if (len == -1)
> + return -1; // Couldn't get any more data to feed to the Inflater
> + if (inf.needsDictionary())
> + throw new ZipException ("Inflater needs Dictionary");
> + }
You want to check this.len which gives the last result of in.read() in fill()
not the local len which is a local parameter of the method.
Cheers,
Mark