]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix bug where inflate would read too much data
authorNiko Lehto <nikle@cendio.se>
Tue, 4 Feb 2020 08:55:49 +0000 (09:55 +0100)
committerNiko Lehto <nikle@cendio.se>
Mon, 17 Feb 2020 10:29:41 +0000 (11:29 +0100)
core/inflator.js

index c85501ffc2bd6d8f359a4c37e561c53ec019e6dc..e61a5bd441095b973f039092275a4907cea879ac 100644 (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) {