From 5462e17f2565cadba6680c11f65f6196c7b546e8 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Tue, 1 Sep 2020 00:55:30 +0200 Subject: [PATCH] Ignore rects with zero width or height We can't do anything productive with these rects anyway --- core/rfb.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rfb.js b/core/rfb.js index f35d503f..8f337c1a 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -2464,6 +2464,10 @@ export default class RFB extends EventTargetMixin { return false; } + if (this._FBU.width === 0 || this._FBU.height === 0) { + return true; // Ignore and mark as handled + } + try { return decoder.decodeRect(this._FBU.x, this._FBU.y, this._FBU.width, this._FBU.height,