From 13be552d60f399d8618af5dc22eb4e0838cd9d8e Mon Sep 17 00:00:00 2001 From: Niko Lehto Date: Tue, 4 Feb 2020 09:55:49 +0100 Subject: [PATCH] Fix bug where inflate would read too much data --- core/inflator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/inflator.js b/core/inflator.js index c85501ff..e61a5bd4 100644 --- a/core/inflator.js +++ b/core/inflator.js @@ -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) {