]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Consume data properly in Hextile decoder
authorPierre Ossman <ossman@cendio.se>
Thu, 14 Feb 2019 15:57:26 +0000 (16:57 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 14 Feb 2019 15:57:26 +0000 (16:57 +0100)
We accidentally removed the code updating the data index in 8a189a6,
resulting in the decoder newer consuming any data. So the data would
be parsed as the next rect, causing weird errors.

core/decoders/hextile.js

index 07c86dbc860919039d907e7fc4fc2770ef6cc026..aa76d2f37b1b4070f2a44aeeb80d439b7b995af2 100644 (file)
@@ -129,6 +129,7 @@ export default class HextileDecoder {
                 }
                 display.finishTile();
             }
+            sock.rQi = rQi;
             this._lastsubencoding = subencoding;
             this._tiles--;
         }