diff options
author | Niko Lehto <nikle@cendio.se> | 2020-02-04 09:55:49 +0100 |
---|---|---|
committer | Niko Lehto <nikle@cendio.se> | 2020-02-17 11:29:41 +0100 |
commit | 13be552d60f399d8618af5dc22eb4e0838cd9d8e (patch) | |
tree | dfb872c61aed8e184403a725fd0f2d5d3292a0d5 | |
parent | 2cee106eee9d01216a627406757beede85341a51 (diff) | |
download | novnc-13be552d60f399d8618af5dc22eb4e0838cd9d8e.tar.gz |
Fix bug where inflate would read too much data
-rw-r--r-- | core/inflator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/inflator.js b/core/inflator.js index c85501f..e61a5bd 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) { |