Fix bug where inflate would read too much data

This commit is contained in:
Niko Lehto 2020-02-04 09:55:49 +01:00
parent 2cee106eee
commit 13be552d60
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export default class Inflate {
}
this.strm.next_out = 0;
this.strm.avail_out = this.chunkSize;
this.strm.avail_out = expected;
let ret = inflate(this.strm, 0); // Flush argument not used.
if (ret < 0) {