Fix bug where inflate would read too much data
This commit is contained in:
committed by
Lauri Kasanen
parent
9ca647667b
commit
581fe511ad
@@ -42,7 +42,7 @@ export default class Inflate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.strm.next_out = 0;
|
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.
|
let ret = inflate(this.strm, 0); // Flush argument not used.
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user